Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97785

Any idea how I can click an iframe button in Dynamics using Selenium? (EasyRepro framework) [duplicate]

$
0
0

Any idea how I can select a button in Dynamics which is part of an iframe?

In the system in question there is a single button that is in an iframe, once clicked it changes to a dropdown list with a list of addresses in it. However, I can't seem to either locate or click on the button. I have tried using:

Driver.driver.SwitchTo().Frame("WebResource_AddressLookup");

I also can't locate the button using driver.FindElement(By.Id("WebResource_AddressLookup")); as it is in the iframe and not the current frame.

I don't think will work as the iframe is part of the form and therefore I am struggling to interact with it.

The 'Lookup Address' button displayed below is an iframe element: button in iframe

Once clicked list of addresses are displayed: button in iframe once clicked reveals address dropdown

Any ideas?


Viewing all articles
Browse latest Browse all 97785

Trending Articles