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

Which selenium command(s) simulates selecting a link?

3932


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

908


How to install use TestNG in selenium webdriver ?

1014


What is the architecture of selenium rc?

1007


What is the testng.xml file used for?

984


what are the testing frameworks used in selenium?

1038


What does a right-pointing green triangle at the beginning of a command in side indicate?

1427


How to login to any site if it’s showing any authentication popup for

1168


How do you read test data from excels?

983


How to perform drag and drop action in selenium webdriver?

859


How to use regular expressions in selenium?

1013


Explain how you can switch between frames?

986


How do you click on a menu item in a drop down menu?

907


Define selenium 2.x?

1061


What is implicit wait in selenium webdriver?

1078