what are the Dynamic elements in web Application?

Answer Posted / sehgalkhyati@gmail.com

Use these methods
Relative XPath with Starting Text
XPath: //button[starts-with(@id, 'tag-')]
Relative XPath with Text Contains
XPath: //input[contains(@class, '-test-')].
Element with Index
driver.findElements(By.xpath(“//*button”)).get(0).click();

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an explicit wait in selenium?

515


How to submit a form using selenium webdriver?

518


Tell me does the selenium have any limitations?

475


What are the languages supported by webdriver?

501


Which is the super interface of webdriver?

539






Tell us how many exceptions do you know in selenium webdriver?

455


Why should testers opt for selenium and not qtp?

568


How to run test case traced by employing ide in browsers?

478


How many exemptions do you know in selenium webdriver?

487


What are the locators available in selenium?

550


How you can handle colors in web driver?

474


What happen if you mix both implicit wait and explicit wait in a selenium script?

457


When should one use selenium grid?

517


How do you identify an object using selenium?

504


What test can selenium do?

519