TestProject Forum

Not able to double click on web table [SOLVED]

Hello,

I need help with the test case execution where i have a web table in which i able to find out the row and column where i need to click but when i click on it it did not open the next page, either i need to double-triple click on it or there is a ‘view’ button next to the row in the table which i need to click but i’m not able to do it.
i had lot of row from which i need to click on specific row which i am able to find through search text action.

please help !!

It sounds like the easiest way is to click the ‘view’ button in the table. What are you having trouble with when you click on it?

I’m getting id through DB query, i need to search that id in table then click it. which is not working.

Hi,
Sounds like you need to find the element based on the xpath with a certain id / row / column,
Here are some basic strategies you can use:

  1. First, edit the element like in the image below,

image

To check your locators use the magnifying glass
(notice the element must be present in the page when checking a locator):

If another locator is more consistent make it your primary locator, push it to the top with the arrows next to the magnifying glass.

  1. Check for a unique attribute and search the button by that locator,

you can make your custom locator like this for example:
using Xpath //*[@attribute="value"]

For instance, my locator for Amazon looks like this:
using Xpath //*[@id="add-to-cart-button"]

For text you can use this locator:

using Xpath //*[@text="Your_Text_Here"]

or this one as well:

using Xpath //*[. ="Your_Text_Here"]

Thank you @Amit.Lacher Amit. I will try it.

I need one more help, how do we run the downloaded tests as JOB using CLI option.
for example, I downloaded 10 TCs and now i have to run those as a JOB using CLI option in offline mode.

Thank you
Saurabh