UFT 14.5 click object should move to the specific page completely
I am automating web application and needs to check the browser compatibility. While running the script from 2 browsers (IE – 11, Chrome - 72) I see there is difference in screen moving to the location of the object that we targeted and performing some operations like mouse over, exist, click, highlight, etc.
For Ex: I have opened Google page and searching for Google, google page loaded with lot of results but can’t see complete information in one screen so that I have to do page down and check all the results. Here assume that results are loaded and covered in 3 pages, my step 1 is to verify the element Searches related to google (please verify the screen shot Step 1 – Page 3). As per the validation the screen has been scroll down automatically and step 1 is completed. Now step 2 is to validate the News menu (please verify the screen shot Step 2 - Page 1 - Chrome), when the script check the object is exist or not then the screen moving to the target object automatically in Chrome as displayed in screen shot Step 2 - Page 1 – Chrome, but the same is running in IE the complete screen moving to top as shown in screen shot Step 2 - Page 1 – IE. In IE the complete screen moving to top but in chrome screen moving to the target object.
But here I am expecting same behavior from 2 browsers either it should move to completely (top) or should move to the targeted object only.
Please suggest if anyone having this kind of experience.
Note: UFT add on are enabled.
Not sure if I understood your issue correctly, but my solution would be to use ScrollIntoView method.
You can use it by
Hope this works for you!
Not the case is reverse, this is working for Chrome, but the same when its running for IE page is moving to the specific object but not the complete page.
Anyhow, this is helpful, i can use infuture if required.