Problems to click on pseudo-element with Selenium Webdriver with Java

Asked

Viewed 20 times

0

I am using a site for learning in the study of Selenium Webdriver and need to click the checkbox next to Select Room, but it is a pseudo-element, only when the cursor on ::before or ::after that the checkbox is selected, so I can not make the selection.

pseu-elemento

I tried the xpaths below but all without success:

//*[@*='checkbox']/../*[@*='custom-control-label text-left go-left']
//*[normalize-space(text()='Select Room')]/following-sibling::label
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.