Taiko: click(link(toLeftOf('text'))) can't find appropriate link adjacent to identifier to select.

Created on 13 Feb 2019  路  3Comments  路  Source: getgauge/taiko

Linked to issue #397

Expected behavior

click(link(toLeftOf('text'))) should click the link in a table immediately to the left of the text.
e.g click(link(toLeftOf('flight alcohol test'))) should click '1000028968'.

screen shot 2019-02-12 at 5 15 50 pm

Actual behavior

Taiko is unable to 'see' this link and instead clicks the top left of the screen and takes user home.

Steps to reproduce

  1. click(link(toLeftOf('flight alcohol test')))
  2. Taiko clicks outside of the table on home button
  3. The html in txt format table.txt

Versions

npm install -g taiko@git+https://github.com/getgauge/taiko.git latest REPL

Most helpful comment

From the html I understand the product Ids are not actually a link rather they are span,
click($('.menulink',toLeftOf('flight alcohol test'))) hopefully should work for this case.

All 3 comments

From the html I understand the product Ids are not actually a link rather they are span,
click($('.menulink',toLeftOf('flight alcohol test'))) hopefully should work for this case.

screen shot 2019-02-14 at 8 16 27 am

It is working fine. Thanks for the solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chris-kobrzak picture chris-kobrzak  路  9Comments

NivedhaSenthil picture NivedhaSenthil  路  3Comments

HaroldPutman picture HaroldPutman  路  4Comments

rmallof picture rmallof  路  4Comments

varayal picture varayal  路  7Comments