Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP not recognizing the webelement
#2
Not Solved
check the x,y values of the webelement if the values are <0 then you can consider that the object does not exist on the page.
Below is the pseudo code....

Code:
BlnResult = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").Exist(0) Then
    intX = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").GetROProperty("X")
    intY = Browser("CDMS :: Master Agreement").Page("CDMS :: Master Agreement").WebElement("File Upload successfully").GetROProperty("Y")
    If (intX>0 and intY>0) then
        Msgbox "Success"
    Else
       Msgbox "Fail"
    End If
Else
    Msgbox "Fail"
End If
Thanks,
SUpputuri
Reply


Messages In This Thread
QTP not recognizing the webelement - by vidya2k2 - 04-03-2015, 09:21 PM
RE: QTP not recognizing the webelement - by supputuri - 04-03-2015, 10:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP recognizing every JavaEdit as "VTextField" having different index values. K Gaurav Varshney 1 2,402 10-29-2012, 11:51 AM
Last Post: krr
  Application and QTP freezes when recognizing/selecting Java Tab pora 4 6,722 01-10-2012, 10:11 PM
Last Post: sunnyk8
  QTP Webelement with Html tag as OPTION pjr 0 7,009 01-30-2011, 05:33 AM
Last Post: pjr
  QTP Not Recognizing WebElement Sathiyakum 6 10,461 01-27-2011, 07:46 PM
Last Post: Arun Prakash
  QTP WebElement Click Help Anilkr 1 8,828 02-04-2010, 01:35 PM
Last Post: sreekanth chilam

Forum Jump:


Users browsing this thread: 1 Guest(s)