How do you get data from Web Table?

Answer Posted / raam

normally table tag represent html tag,tbody denotes contents of webtable..
tr-->row of table
td or th ----->column of table

to get the contents of table we can use the xpath/or suitable locating process

//[@name=username]/table(index)/tbody/tr(index)/td(index)

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of listeners in testng?

1010


What is the syntax of finding elements by class using css selector?

508


Explain how you can capture server side log selenium server?

510


What is testng and how is it better than junit?

495


What is difference between qtp and selenium?

511






How you will login into any site if it is showing any authentication popup for username and password?

503


How is driver.close()command different from driver.quit command?

486


What is the difference between “/” and “XPath //”?

542


What is the command to insert text into the HTML text box using Selenium?

498


Explain selenium waitfor commands ?

516


How can it be found if an item is displayed on the screen?

524


How to perform drag and drop action in selenium webdriver?

421


How can we get a text of a web element?

489


What is same origin policy? How you can avoid same origin policy?

441


What are the operating systems supported by selenium webdriver?

439