UFT/QTP highlights object incorrectly.
Question ID: 106517
0
0

UFT/QTP is able to identify the object using Descriptive Programming. But when performing an action like click, fire event, highlight. etc. it always performs at the top left corner of the browser.

Marked as spam
Posted by (Questions: 45, Answers: 1)
Asked on November 13, 2015 7:58 pm
42 views
Answers (1)
0
Private answer

I have seen something like this. The issue was accessing a pop up menu directly which did not have a browser base object and could not be seen by spy.

Wrote the following line of code to access page
page(''index:=0'').highlight

Solution code
Browser(''myBrowser'').Page(''myPage'').WebElement(''myButton'').Click
page(''index:=0).WebElement(''html tag:=TD'',''innerhtml:='').click

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on November 13, 2015 8:06 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top