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 out the test types that are supported by selenium?

920


How to press enter key on text box in selenium webdriver?

1004


List some of the common automation frameworks.

935


Explain the difference between implicit wait and explicit wait.?

955


What are the different components of selenium?

1051


What kinds of tests can be run with the selenium framework?

932


What is Dynamic xpath in selenium ?

1019


Using web driver how you can store a value which is text box?

969


How to type in a textbox using selenium?

1049


What is the use of driver.get("url") and driver.navigate().to("url") command? Is there any difference between the two?

1022


Can we enter text without using sendkeys()?

988


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

919


How you can switch back from a frame?

910


What is selenium 2.0?

1178


Explain how you can switch between frames?

1003