0

Currently I am trying to automate casting to an Airplay device on Safari using Selenium and Robot Framework.

I'm having an issue with being able to select an Airplay device after the Airplay button has been received. The small menu that appears doesn't seem to have any way for Selenium to identify it and so I can't interact with it at the moment.

I had encountered a similar issue when doing a similar task using Chrome Browser with Chromecast, but in that case the device menu had it's own window id which doesn't seem to be the case for the Airplay device menu.

The Airplay button - clicking on this is no problem as this button has its own id within the page html:

The Airplay button - clicking on this is no problem as this button has its own id within the page html.

This is the menu I can't interact with, I cannot select "QA Apple TV" - looks like this menu isn't part of the actual page html and doesn't seem to have it's own window id:

This is the menu I can't interact with, I cannot select "QA Apple TV" - looks like this menu isn't part of the actual page html and doesn't seem to have it's own window id

This Airplay device menu is universal so will come up on Youtube etc. If anyone would like to take a look at it themselves. (Providing there's an AppleTV on your network).

1 Answers1

0

Put your browser in developer mode, watch which value will be setted after click 'QA Apple TV'. In your test you can force the value with javascript.

i.e. : i think that after click some field assume 'QA Apple TV' value; if you know which field will assume the value you can force it with js and force click even with js (Just to be clear ;) )

andrexorg
  • 77
  • 4