cancel
Showing results for 
Search instead for 
Did you mean: 

Click a css selector by using xpath

Highlighted
Regular Contributor

Click a css selector by using xpath

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

 

 

 

 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

1 REPLY 1
Highlighted
Community Hero

Re: Click a css selector by using xpath

Hi,

 

http://community.smartbear.com/t5/Functional-Web-Testing/Chrome-window-getcomputedvalue-in-scriptext...
and
https://community.smartbear.com/t5/TestComplete-Functional-Web/WaitProperty-on-styles/m-p/149995#M30...

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.

Regards,
  /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.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors