Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HOW-TO] Selecting iFrame buttons in Dynamics #723

Open
JakeObrienMercuryXrm opened this issue Jan 20, 2020 · 1 comment
Open

[HOW-TO] Selecting iFrame buttons in Dynamics #723

JakeObrienMercuryXrm opened this issue Jan 20, 2020 · 1 comment
Labels

Comments

@JakeObrienMercuryXrm
Copy link

How can I 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"); '
but 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:
image

Once clicked list of addresses are displayed:
image

Any ideas?

@AngelRodriguez8008
Copy link
Contributor

I think you are doing well, changing the Frame and continue finding the elements as usual with Selenium. Using XPath, Tag, Id, etc.

See my last example in this comment (at the end, expand to see it). You can replace the input with your control & use the rights actions for this.

br

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants