Showing results for 
Search instead for 
Did you mean: 

Click a css selector by using xpath

Regular Contributor

Click a css selector by using xpath

<div class="input-control checkbox">
<span class="check">




 this ::before indicate a checkbox.
but i am not able to make Xpath for this. what should be the path for it, and i do'nt want to use xpath Contains style

Community Hero

Re: Click a css selector by using xpath


might help.

Note, that in this case (considering the provided markup) the found object will be a native DOM element and it will not be wrapped with TestComplete-provided methods and properties like .Click(), .Checked, etc. You will need to use either coordinate-based Sys.Desktop.Click(<x>, <y>) or native methods provided by DOM.

  /Alex [Community Hero]
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors