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
    Champion Level 3

    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.)