Category "ui-automation"

Click a button element on page load

I'm trying to auto-click a button to initiate a function when the html page loads. I've tried document.getElementById('watchButton').click and it doesn't seem t

How to create xpath locator when element does not have any attributes

How can I access the element using xpath selector if that particular element does not have any attributes? <?xml version="1.0" encoding="UTF-8"?> <chal