Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
7 years ago

Click on Pesudo element

<label for="yes-tc">
::before

 

I have click on this Pesudo element . Is this possible using XPath??

1 Reply

  • AlexKaras's avatar
    AlexKaras
    Community Hero

    HI,

     

    Yes, this should be possible.

    .FindChildByXPath() method will return you the native DOM element and you should be able to call its native .click() method. (Note possible case-sensitivity that depends on the scripting language you are using.)