-
Notifications
You must be signed in to change notification settings - Fork 18
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
Finding PCF Controls HTML (UCIBrowser iFrames) #146
Comments
OK, it was a web resource hence the need for an iFrame. I've written something to change context and then look for child elements. I'm happy to contribute with pull requests or create our own dll to help others.
|
So basically it isn't a PCF control but a HTML web resource? Also can you give some details of what is behind the commands? I think being able to work with a HTML resource makes sense and would be a good addition. The thing is that all steps should be about behavior and not actions like this. Changing it to behavior will be quite difficult, as the content of the HTML resource will be different per implementation. |
Hi,
I'm trying to write a step to test a PCF Control but I cant find the HTML elements using a Selimumn driver.FindElements(By.ClassName("btn-cta")) in my command.
Looking at the HTML There is an iFrame, so assume using UCIBrowser I should switch iFrames.
Selenium has the SwitchTo method
https://www.guru99.com/handling-iframes-selenium.html
Whats the recommended approach for getting to WebElements in a PCF controls please?
The text was updated successfully, but these errors were encountered: