Software Quality Assurance & Testing Asked by ChathuD on September 5, 2020
As on the image I have to click on the highlighted iFrame and I’m on Jmeter Web Driver Sampler
.
The issue is the bottom part of the iFrame id will get change time to time.
So can’t exactly identify it using ID.
If this is with C# then I can get a list with all tag names == iFrame
and click on the selected iFrame.
But with Jmeter Web Driver Sampler I’m not sure how to do something like this.
I can see 2 iframes in your picture, one is visible and another one is not visible (the highlighted one).
So you need to:
none
using normal WebDriver.findElement() function which returns a WebElementExample code:
var iframe = WDS.browser.findElement(org.openqa.selenium.By.xpath("//iframe[not(contains(@style, 'display: none'))]")
WDS.browser.switchTo().frame(iframe)
More information: The WebDriver Sampler: Your Top 10 Questions Answered
Answered by Dmitri T on September 5, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP