lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
506 stars 115 forks source link

How do I click link in table header? #479

Closed kevinmcfarlane closed 5 years ago

kevinmcfarlane commented 5 years ago

Looks like this. So I want to click the "#"

<table id="processTable" class="table admin-table table-striped table-bordered">

<th>    <a href="#">
        <i class="glyphicon glyphicon-sort" data-sort-name="ActivityType"></i>
    </a>
Activity Type</th>
lefthandedgoat commented 5 years ago

click "#processTable th a"

kevinmcfarlane commented 5 years ago

Thanks for the speedy response Chris. In my case I actually needed to click the 4th header cell so I used

click "#processTable th:nth-child(4) a"

and it works fine. :)