Clark Posted December 8, 2011 Posted December 8, 2011 Hi all I am trying to automate some test scripts to be used to test SAP in the WebGUI. Unfortunately SAP is ill behaved and I am getting inconsistant results using tabs and enters. To aid in anchoring the position of the cursor I would like to focus the cursor (?) on the first link on the page*. (I can't tab to it as the number of tabs required seems to vary with the phases of the moon.) So, I thought I would try altering the _IELinkClickByIndex function, by changing the following line: $oLink.click to $oLink.focus Unfortunately, for reasons I don't understand, this does not work. So, is there a way to just set the focus* on a particular link? Not click it, but just focus it? *By focus I mean as if you had just tabbed to it and you can see a sort of dotted box around it. TIA Clark
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now