How to select each element in the column 2 of the table

Ranorex Spy, Recorder, and Studio.
Kool
Posts: 2
Joined: Fri Oct 30, 2020 8:52 pm

How to select each element in the column 2 of the table

Post by Kool » Mon Nov 02, 2020 2:00 pm

Hi,

I am new to Ranorex . Can you please send me the code for this?

My application has a table which consists of 4 columns. Table has many number of rows, but I need to select 75 cells (elements) in the second column and need to validate that it gets selected.

Div/Table/Tbody/TR/https://mobdro.bio/
Each Trtag has Td[1], Td[2], Td[3] and Td[4]

Table name = stripList (divtag)
Column 1 = Td/Imgtag
Column 2 = Td/divtag
Column 3 = Tdtag
column 4 = Tdtag


Table = /dom[@domain]//iframe[#'content_iframe']//div[#'strip_list']

Column 2 = /dom[@domain]/iframe[#'content_iframe']//div[#'strip_list']/table/tbody/tr[2]/td[2]//div[#'090a3be56efaa9b2123669759a0eb200']

Thanks.
Last edited by Kool on Wed Nov 11, 2020 11:34 am, edited 1 time in total.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6360
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to select each element in the column 2 of the table

Post by odklizec » Wed Nov 04, 2020 8:20 am

Hi,

Please post a Ranorex snapshot (NOT screenshot) of discussed table. It would be much easier to suggest appropriate code with snapshot file ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration