@bablotyt Π²ΠΏΠ½/ΠΏΡΠΎΠΊΡΠΈ Π²Π½ΡΡΡΠΈ ΡΠ°ΡΡΠΈΡΠ΅Π½ΠΈΠΉ Π½Π΅ ΠΏΠΎΠ΄Π΄Π΅ΡΠΆΠΈΠ²Π°ΡΡΡΡ. ΠΠ΅ Π·Π°Π±ΡΠ²Π°ΠΉΡΠ΅ ΡΡΠΎ Π²Ρ ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΠ΅ ΠΊΠ°ΡΡΠΎΠΌΠ½ΡΡ ΡΠ±ΠΎΡΠΊΡ Chromium ΠΈ ΡΠ°ΠΌ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½Ρ ΠΌΠ½ΠΎΠ³ΠΈΠ΅ Π΄Π΅ΡΠ°Π»ΠΈ Π΄Π²ΠΈΠΆΠΊΠ° ΠΈ Π°Π»Π³ΠΎΡΠΈΡΠΌΡ.
Bas is unable to click on Check box (I agree btn)
-
Browser -> Javascript
I have tested it and it works.
https://www.zoho.com/us/books/signup/// Get a reference to the checkbox element const checkbox = document.getElementById('tos'); // Check if the checkbox is not already checked if (!checkbox.checked) { // Create a click event const clickEvent = new MouseEvent('click', { view: window, bubbles: true, cancelable: true }); // Dispatch the click event on the checkbox checkbox.dispatchEvent(clickEvent); } -
@DuckDuck said in Bas is unable to click on Check box (I agree btn):
//input[@id="tog_agree"]
Both are not worked for me
When I search with //input[@id="tog_agree"] on Chrome developer tool this path only pointing the check box not selection the box. Please see the image attached.

In the bellow Screenshot you can see when i hover the cursor on ::before == $0 its able to select the box, How can I use xpath for this?








