I have a test developed in TestComplete 12.50(64bit)
The test includes a click action, in a web application through FireFox 61.0.1(64bit)
I run the test from QAComplete 11.9 through a VM Windows7(64bit).
When I use UserA in test agent , the test passes fine .
But when I use UserB in test agent , the test reaches the click action, but the click is done in a wrong position , so we don'e get the expected results.
Please check the attached screenshots:
- The passingClick.png image shows the correct highlighting and click of the object.
- The FailingClick.png image shows the click a littel bit above the highlighted object.
I tried to reporduce the issue manually by login the VM with UserB , but I couldn't reproduce it. ( I can click manually and get the exepected results).
Also I tried to change resolution when I login with UserA and run the automated test,but I couldn't reproduce the issue.
It happens only when I run the test from QAComplete , with test agent user UserB.
Can anyone help please ?
Thank you for reminding me , yes it was solved by using scrollIntoView for object we want to click.
But the original issue was because there were 2 panel over each other , and both panels have an object with the same attributes, I was trying to click the object on the top, while TestComplete was trying to click the object in the back.
Using scrollIntoView solved the issue, But I still don't know why scrollIntoView worked with the correct object, while click didn't work!
Also I still don't know why Click was working with UserA , and wasn't working with UserB, then it worked fine when scrollIntoView is used!
Anyway I'm glad the issue is solved
I'm glad to hear that the issue is resolved now. Thank you for sharing the solution.
As for the other questions, it's better to post them in our active TestComplete Community: