HOW TO SELECT ALL VALUES IN THE TABLE USING SELENIUM WEBDRIVER

87 views
Skip to first unread message

Suresh Kumar

unread,
May 2, 2014, 4:12:02 AM5/2/14
to seleniu...@googlegroups.com

How to select all values in the table using selenium web-driver.

For each table the values may be differ or same.

THIS IS THE HTML CODE:

<div class="hit-table-wrapper">

<table id="" class="hit-table" cellspacing="0" cellpadding="0">

<tbody>

<tr class="">

<tr class="">

<tr class="hit-row selected-hit" onclick="showHit(this, 'APPLE0', 0, true)">

<tr class="hit-row" onclick="showHit(this,'APPLE1', 1, true)">

<tr class="hit-row" onclick="showHit(this,'APPLE2', 2, true)">

<tr class="hit-row" onclick="showHit(this,'APPLE3', 3, true)">

<tr class="hit-row" onclick="showHit(this,'APPLE4', 4, true)">

</tbody>

</table>

jeevan

unread,
May 2, 2014, 3:33:43 PM5/2/14
to seleniu...@googlegroups.com
What values you want to get from this table?



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5dc314f0-50fc-4ca6-aaa1-5c70f092e584%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Afzal

unread,
May 4, 2014, 10:20:21 AM5/4/14
to seleniu...@googlegroups.com
Hi Suresh,

Your question is not clear, 

do you just want to store / print the values of each row data?

do you want to select all the rows in the table?

and my question to you is,  Is  your <table> exists in the <tbody> /  <tbody> exists in the <table>?

Regards,
Afzal

On Friday, May 2, 2014 1:42:02 PM UTC+5:30, Suresh Kumar wrote:

How to select all values in the table using selenium web-driver.

For each table the values may be differ or same.

THIS IS THE HTML CODE:

<div class="hit-table-wrapper">

<table id="" class="hit-table" cellspacing="0" cellpadding="0">

<tbody>

<tr class="">

<tr class="">

<tr class="hit-row selected-hit" onclick="showHit(this, 'APPLE0', 0, true)">

<tr class="hit-row" onclick="showHit(this,'APPLE1', 1, true)">

<tr <span style="font-size:12.0pt;font-family

...
Reply all
Reply to author
Forward
0 new messages