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 ?    18 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 ?    7 Yes 0 No

Post New Answer

More Selenium Interview Questions

How you can login into any site if it’s showing any authentication popup for password and username?

0 Answers  


What is the difference between driver.close() and driver.quit() methods?

0 Answers  


What are the technical limitations while using selenium rc?

0 Answers  


What are the advantages of the automation structure?

0 Answers  


What are the drawbacks of selenium ide

0 Answers  






How can we capture screenshots in selenium?

0 Answers  


List the parameters that one needs to pass in selenium.

0 Answers  


Mention what are the capabilities of selenium webdriver or selenium 2.0?

0 Answers  


Firefox driver is class or an interface and from where is it inherited?

0 Answers  


Tell me what are the advantages of using git hub for selenium?

0 Answers  


Write a code snippet to perform right-click an element in webdriver.

0 Answers  


what is the difference between absolute path and relative path?

0 Answers  


Categories