05-01-2013, 10:30 AM
(This post was last modified: 05-01-2013, 11:30 AM by pradeep singh.)
Hi to All,
I am struck in below problem , unable to get understand why qtp behaving differently .
When I run below lines of code for IE or mozilla , it works fine but when I run this same for chrome browser , it throws error.
'******************************************
'******************************************************
And error thrown only in chrome browser is :
Cannot identify the object "[ WebElement ]" (of class WebElement). Verify that this object's properties match an object currently displayed in your application.
When I stored this xpath in OR for a particular object ,then it works in chrome fine. But I can not use OR for this as object is dynamic. Please help me to resolve above issue.
All patches have already installed as other scripts run fine in all browsers (IE 7,IE8, IE9,mozilla(version12),chrome(version 24)
Please anybody help me as It is very urgent for me.
Thanks & Regards
Pradeep singh
I am struck in below problem , unable to get understand why qtp behaving differently .
When I run below lines of code for IE or mozilla , it works fine but when I run this same for chrome browser , it throws error.
'******************************************
Code:
' here vrows value is dynamic
For j=1 To vrows
vCommonXpath=".//*[contains (@id,'mainForm:') and @class='ui-datatable-data ui-widget-content']/tr["
vXpathLastName=vCommonXpath & j & "]/td[2]/div/label"
msgbox Browser("login.xhtml").Page("base.xhtml").WebElement("xpath:="& vXpathLastName).GetROProperty("innertext")
Next
And error thrown only in chrome browser is :
Cannot identify the object "[ WebElement ]" (of class WebElement). Verify that this object's properties match an object currently displayed in your application.
When I stored this xpath in OR for a particular object ,then it works in chrome fine. But I can not use OR for this as object is dynamic. Please help me to resolve above issue.
All patches have already installed as other scripts run fine in all browsers (IE 7,IE8, IE9,mozilla(version12),chrome(version 24)
Please anybody help me as It is very urgent for me.
Thanks & Regards
Pradeep singh