cancel
Showing results for 
Search instead for 
Did you mean: 

Identifiying a web table into a collection

bikramjit_ghosh
Level 2
Hi Everyone, I am trying to automate booking train ticket in a website. I am a facing issue in spying one particular page which shows us the train details(Print screen attached). Wherein I can fetch the details of each field individually but I would like to fetch the entire table from the page. The table rows are variable. Can some one suggest a way to pull up the list of all the trains with details. Thanks in advance
7 REPLIES 7

ShreyansNahar
Level 5
Hi Bikramjit, I am not able to see any attachment. But as far as I understand your issue, I suggest you use the HTML mode for identifying the table. There is an X-path of each and every element on a webpage. You can uniquely identify the X-path and use it to get your table. Post identifying, use the Read stage with 'Get Table' option to retrieve the table into a collection. This method worked well for me.

bikramjit_ghosh
Level 2
Thank you Shreyans.I have attached the collection table snapshot on the top.

GertLõhmus
Level 4
There really is no attachment. At least I do not see one. Maybe you can provide the web-page as well? Sometimes table are actually not tables when it comes to HTML code and as a result the read table will not work. If you could provide a picture of the web site and also a picture of the HTML code, it would be splendid.

Denis__Dennehy
Level 15
There is a Get Table action available in the read stage for tables (both when using HTML mode and AA modes). You can use the Get Table action for any element within the table - I recommend trying it for a header cell and maybe the first value cell to see if either of those work for you. If Get Table does not work because the underlying structure of the HTML is not standard, you could instead try using Get HTML and then parsing the text in the table using regular expressions and string handling calculations/decisions.

Prabhakara_Kuma
Level 4
If I understand right, able to spy individual TD in the table but not the entire table. Identify one TD and modify the path and Tag Name attributes. Change the tag name attribute value from TD to TABLE. Similarly modify the Path that can cover the whole table instead of just TD. Compare a TD and TR and you would be able to get Table path. -Prabhakar

vinoth_kumaryuv
Level 3
Hi Team, I am trying to get web table, which is with pagination, from one of banking application developed using EXT JS technologies and put it in collection but after the run I found the collection doesn't contain any value. I have used both HTML and AA mode and tried using element within the table to get the web table. Is there any way for getting this web table into collection. PFA of screenshot of web table Thanks in advance

PrageetDak
Level 4
Hi Bikramjit, How did you resolve above issue, I am also facing similar kind of problem, I did try finding out the xpath but it's like lot of divs are there which I am unable to understand. Please let me know how did you fix it.