HTML Table cell contains Image verification

1 Answer 68 Views
Coded Steps Coded Tests
hasan
Top achievements
Rank 1
hasan asked on 29 Apr 2022, 05:13 PM

Hi everyone,

I am newbie, and I am having trouble with syntax. I need help to figure out this step.

In my web application, I have two tables named ItemsTable1 and ItemsTable2. Each table has its own items listed under itself.

Some of these items have an image/icon in column #7 which means the particular item has "workplan" on it.

-If the item has "workplan"(icon in the column #7), I need to click anywhere in the row except the icon.

-My two table (ItemsTable1 and ItemsTable2) will stay on the left hand side and a new table will populate on the right hand side to show item's details.

-I will verify total amount is bigger than $0.00.

-If the item doesn't have icon in the column #7, then jump to next row.

-If tableTable1 doesn't have any item with workplan (icon in the column #7), then go to ItemsTable2 and check each row.

-If there is no item with workplan at all, fail the test with taking screenshot.

 


1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 04 May 2022, 08:00 AM

Hello Hasan,

Based on the description you need to automate dynamic tables. Due to their specifics it is recommended to use coded approach for these scenarios - in this article you can find two basic samples, which demonstrate how you can go through the cells of a table and use the data in it.  

On a side note, if you need further assistance on the case, please, use the private support ticket you have on the topic and follow up in that one.

Thank you for your cooperation.

Regards,
Elena
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Test Studio course! Check it out at https://learn.telerik.com/.
Tags
Coded Steps Coded Tests
Asked by
hasan
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or