getgauge / taiko

A node.js library for testing modern web applications
https://taiko.dev
MIT License
3.56k stars 452 forks source link

Taiko is unable to identify the selector although the highlight API shows it on the screen #2704

Open harimadusumilli opened 1 year ago

harimadusumilli commented 1 year ago

Describe the bug I am using the REPL Window of Taiko and I am able to identify the dropdown element by using the highight() API. When I try to focus on the element and select the value from the drop down it states that dropDown().select("Billing") Uncaught Option Billing not available in drop down

To Reproduce Steps (or script) to reproduce the behavior:

  1. Opened up up my testing website which is internal
  2. Navigated to the screen successfully using the Taiko APIs through the REPL window
  3. Now when I am on the screen and use the following command, highlight(dropDown(),toRightOf('Address Type')) [PASS] Highlighted the
  4. When I try the following as the next step, focus(dropDown(),toRightOf('Address Type')) [PASS] Focussed on the
  5. Now when I try and execute the following, I get the following exception dropDown().select("Billing") Uncaught Option Billing not available in drop down

Expected behavior Taiko should be able to click the drop identified dropdown as identified in teh visual display of highlight API

Screenshots Attached are the screen shots

Versions:

harimadusumilli commented 1 year ago

I am unfortunately not able to upload the screen shot, I am getting errors on git. SO , not sure what would be a good way for you to get more information on this. I will try again later.