Completed
Last Updated: 03 Apr 2023 21:16 by ADMIN
ADMIN
Cody
Created on: 09 Jan 2015 03:36
Type: Feature Request
1
When running a web test in a test list in IE, input focus starts in the browsers input url field
When a web test starts running from a test list, input focus initially is left in the browsers URL input field. This causes tests to fail when they have to rely on Tab and keyboard typing approaches.
The customer that reported the issue was running IE Version 11.0.9600.17501 on Windows 7. It is unknown if this makes a difference.
4 comments
Jack
Posted on: 04 Feb 2015 19:32
I don't understand why it is different only when running a test list.

The Set Focus works 100% of the time when I execute my test.  The test launches the browser, Navigates to the URL, logs in and goes through and enters data on multiple pages with out fail.

If I go in to Test Lists - Create a list and associate that test with the list, and run the test list it will then fail 100% of the time because the focus remains on the URL and my 'set focus' never runs to set the focus to the proper element.

The mouse click on the center of the page prior to the set focus lets it pass about 90% of the time.  This to me, is not a valid work around because it is unreliable.

I can also not just 'mouse click' on the control I need to have focus because its ID's are all GUID related to make them unique on the page.  I would be doing that if I could.

Is there another work around that would be more reliable?
ADMIN
Daniel Djambov
Posted on: 04 Feb 2015 14:46
Telerik: unfortunately having the focus at the navigate url is a default browser behavior and combined with the specific requirement to use typetext with keyboard (which sends windows keys events to the desktop regardless of the control) does exactly as it is supposed to. So ensuring the focus is at the correct element before the type starts should be granted from the test itself that uses it. Using Desktop Mouse clicks to set focus on the appropriate web control and adjusting the tests that depend on this properly is the approach we can recommend at this point..
Jack
Posted on: 20 Jan 2015 18:22
The mouse click is not working all of the time.  I am now getting random failures because the focus is in the browsers URL.

When I use your focus command to focus a text box after the mouse click it is failing 1 out of 10-15 attempts doing the same tests repeatedly.
Cody
Posted on: 09 Jan 2015 03:44
The problem can be solved by adding a mouse click anywhere in the browsers window to change the input focus, but this should not be necessary.