05-07-2013, 02:16 PM
(This post was last modified: 05-07-2013, 02:44 PM by pradeep singh.)
Hi ,
Still same error in chrome.
Why chrome only showing error but runs fine in IE,mozilla ? I have also try with other webelements by mentioning only xpath ,same result as runs fine in mozilla ,IE but can not identify webelement error in chrome. Is xpath (used in dp ) not work for chrome browser?????
Note: I have already installed required patches as other script runs fine in chrome also.
Hi ,
To regenerate issue at your end. Follow below steps.
Step 1: Close all previously opened browsers.
Step 2: Copy and past below line of code in your qtp.
Step 3: Open firefox browser and navigate to this url: "www.google.co.in"
Step4: Execute above code.
Step 5: You will get the outpout "india" .
Step 6: Now repeat above steps from 3 to 5 but instead of firefox ,now open chrome browser. Now you will get the error.
Still same error in chrome.
Why chrome only showing error but runs fine in IE,mozilla ? I have also try with other webelements by mentioning only xpath ,same result as runs fine in mozilla ,IE but can not identify webelement error in chrome. Is xpath (used in dp ) not work for chrome browser?????
Note: I have already installed required patches as other script runs fine in chrome also.
Hi ,
To regenerate issue at your end. Follow below steps.
Step 1: Close all previously opened browsers.
Step 2: Copy and past below line of code in your qtp.
Code:
'msgbox Browser("title:=.*").page("title:=.*").webelement("xpath:=.//*[@id='hplogo']").GetROProperty("innertext")
msgbox Browser("title:=.*").page("title:=.*").webelement("xpath:=.//*[@id='hplogo']","html id:=hplogo","outertext:=India").GetROProperty("innertext")
Step4: Execute above code.
Step 5: You will get the outpout "india" .
Step 6: Now repeat above steps from 3 to 5 but instead of firefox ,now open chrome browser. Now you will get the error.