The particular object in the website, taiko is not able to click it #2076
Replies: 4 comments
-
This Xpath does not seem to match the screenshot of the DOM this should've been
Is there a reason why you use the |
Beta Was this translation helpful? Give feedback.
-
I have tried this |
Beta Was this translation helpful? Give feedback.
-
Please try clicking on the
You should try using css class selectors instead for example
If you want to use multiple classes for matching you can read about it here https://stackoverflow.com/questions/2554839/select-element-based-on-multiple-classes about using class selectors. Moving this to a discussion as this seems to be more about using the right selector instead of it being a bug. |
Beta Was this translation helpful? Give feedback.
-
It worked thanks. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am trying to click an object in the website with taiko custom selector, class and all other possible ways but it is not working. I will attach the screenshot and the HTML code for your reference.
I can't able to click that object using taiko.
To Reproduce
I will provide you the sample One signal account for you to work on.
URL: https://app.onesignal.com/login
Click on the OneSIgnal logo --> app name --> Messages --> Automated --> New Automated push -- > Send to particular segment(s) (radio button)
Here you can see the Subscribed User near that you can see a cross symbol need to make the taiko click it
the HTML code is
<div class="sc-flvzOl sc-gGsJSs iRUdKN"><div tabindex="0" class="sc-jUiVId sc-kecUPG eowKsL"><svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="currentColor" class="sc-bdVaJa AYviX"><path d="M9.15 8.09a.125.125 0 010-.177l4.632-4.63a.75.75 0 00-1.062-1.061L8.089 6.85a.125.125 0 01-.177 0L3.28 2.22A.75.75 0 102.22 3.283l4.63 4.631a.125.125 0 010 .177l-4.63 4.632a.749.749 0 00.53 1.28.75.75 0 00.53-.22l4.632-4.631a.125.125 0 01.177 0l4.63 4.631a.75.75 0 001.062-1.06L9.15 8.09z" fill="currentColor"></path></svg></div></div>
Error: Custom selector $(//input[@Class="sc-bdVaJa AYviX"]) not found
Error: Custom selector $(p) not found
Logs
Expected behavior
Have to click the cross symbol near the Subscribed users as shown in the attached screenshot
Screenshots
Versions:
[e.g. 1.0.23 (use
taiko --version
)][e.g. 10.15.6 (19G2021) please be specific ]
[e.g. v.12.18.14]
Additional context
Kindly provide more click options.
Beta Was this translation helpful? Give feedback.
All reactions