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
1 Asked on October 25, 2021 by user46038
1 Asked on October 25, 2021 by user12730187
2 Asked on February 27, 2021
1 Asked on February 19, 2021 by sandesh-sawant
1 Asked on February 16, 2021 by apeksha-agarwal
1 Asked on February 12, 2021 by sebastian-inones
1 Asked on February 9, 2021 by ankita
0 Asked on February 9, 2021 by baini-marouane
5 Asked on February 3, 2021 by user1523236
0 Asked on January 27, 2021 by sinu-reddy
1 Asked on January 25, 2021 by haroon-amjad
3 Asked on January 25, 2021 by ivan-b
1 Asked on January 21, 2021 by user32519
4 Asked on January 16, 2021 by na001
1 Asked on January 15, 2021
1 Asked on January 9, 2021 by ugochukwu-anajemba
automated testing c selenium webdriver test automation framework
1 Asked on December 28, 2020 by thestiggg
1 Asked on December 27, 2020
1 Asked on December 25, 2020 by m-thurman
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP