what are the Dynamic elements in web Application?




Answers were Sorted based on User's Feedback



what are the Dynamic elements in web Application?..

Answer / raam

the elements whose identifiers are non static which may change within time..dynamically generates its identifiers.

it is used for buttons,text etc..

Is This Answer Correct ?    16 Yes 0 No

what are the Dynamic elements in web Application?..

Answer / 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 ?    5 Yes 0 No

Post New Answer




More Selenium Interview Questions

Tell me how can you handle network latency using selenium?

0 Answers  


What are core extension?

0 Answers  


In selenium what are breakpoints and startpoints?

0 Answers  


How is testng better than junit?

0 Answers  


What are the uses of findelement() and findelements()?

0 Answers  






How can we submit a form in selenium?

0 Answers  


What are the test types supported by selenium?

0 Answers  


How to verify tooltip text using selenium?

0 Answers  


Explain the difference between confirming and verifying commands?

0 Answers  


What is exception test in selenium?

0 Answers  


What are the types of waits available in selenium webdriver?

0 Answers  


How do you get all the values from Drop Down list?

6 Answers   HCL,






Categories