Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

List some of the operating systems that are supported by selenium webdriver.

880


What is the difference between MaxSessions vs. Selenium grid MaxInstances properties?

1096


What are the important selenium ide commands or selenese commands?

1031


what are challenges you faced in your last project?

1502


What is the purpose of creating a reference variable- ‘driver’ of type

966


List major difference between protractor vs selenium?

1096


What is pom (page object model)? What are its advantages?

967


Explain how can you find broken links in a page using selenium webdriver?

909


Which selenium command(s) simulates selecting a link?

4005


How will u write page object models and data driven model.

1371


What regular expression special character(s) means "any character?"

938


What is the architecture of selenium rc?

1051


How to find whether an element is displayed on the web page?

945


How to clear the text in the text box using selenium webdriver?

1030


Mention why do you need session handling while working with selenium?

1038