weblink issue - narayan1975gmail - 11-19-2009
Code: browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Email").Set "xxx"
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Passwd").Setsecure "xxxx"
If browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").GetROProperty("Checked") then
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "OFF"
else
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "ON"
end if
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webbutton("name:=sign in").click
browser("name:=Gmail - Trash - narayan1975@gmail.com").page
("title:=Gmail - Trash - narayan1975@gmail.com").link("name:=trash").click
browser("name:=Gmail - Trash - narayan1975@gmail.com").page("title:=Gmail - Trash - narayan1975@gmail.com").webelement("outertext:=all").click
I encounter an error in line Code: browser("name:=Gmail - Trash - narayan1975@gmail.com").page("title:=Gmail - Trash - narayan1975@gmail.com").link("name:=trash").click
Cannot find the "[ Link ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.
RE: weblink issue - v_selvam - 11-19-2009
change this "name:=trash" in to "text:=trash" and then try.
RE: weblink issue - narayan1975gmail - 11-19-2009
Sorry, same issue persists
RE: weblink issue - sreekanth chilam - 11-19-2009
Hi Narayan,
Try with the below, it would work fine.
Note:Apply regular expression for "title" property, as property value would vary dynamically.
Code: Browser("title:=Gmail.*").Page("title:=Gmail.*").Frame("name:=v1").WebElement("Innertext:=Trash","html id:=ds_trash").Click
RE: weblink issue - narayan1975gmail - 11-20-2009
Code: browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Email").Set "xxx"
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Passwd").Setsecure "xxx"
If browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").GetROProperty("Checked") then
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "OFF"
else
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "ON"
end if
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webbutton("name:=sign in").click
wait(10)
Browser("title:=Gmail.*").Page("title:=Gmail.*").link("Innertext:=Trash").Click
Browser("title:=Gmail.*").Page("title:=Gmail.*").webelement("Innertext:=all", "html tag:=span", "outertext:=all").Click
Browser("title:=Gmail.*").Page("title:=Gmail.*").webelement("Innertext:=delete forever").Click
error at line Code: Browser("title:=Gmail.*").Page("title:=Gmail.*").webelement("Innertext:=all", "html tag:=span", "outertext:=all").Click
The "[ WebElement ]" object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object.
What else properties I can give to make it unique?
Code: browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Email").Set "xxx"
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Passwd").Setsecure "xxx"
If browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").GetROProperty("Checked") then
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "OFF"
else
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "ON"
end if
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webbutton("name:=sign in").click
wait(10)
Browser("title:=Gmail.*").Page("title:=Gmail.*").link("Innertext:=Trash").Click
Browser("title:=Gmail.*").Page("title:=Gmail.*").webelement("Innertext:=all", "html tag:=span", "outertext:=all", "x:=235", "y:=161").Click
Browser("title:=Gmail.*").Page("title:=Gmail.*").webelement("Innertext:=delete forever", "x:=188", "y:=136").Click
In running above code QTP doesnt throw any error and its not deleting any thing. The last 2 lines didn't execute at all
RE: weblink issue - basanth27 - 11-20-2009
Source_index
RE: weblink issue - narayan1975gmail - 11-20-2009
Code: browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Email").Set "xxx"
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webedit("name:=Passwd").Setsecure "xxx"
If browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").GetROProperty("Checked") then
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "OFF"
else
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").WebCheckBox("name:=PersistentCookie").Set "ON"
end if
browser("name:=Gmail: Email from Google").page("title:=Gmail: Email from Google").webbutton("name:=sign in").click
wait(10)
Browser("title:=Gmail.*").Page("title:=Gmail.*").link("Innertext:=Trash").Click
Browser("title:=Gmail").Page("title:=Gmail.*").webelement("Innertext:=all", "outertext:=all", "x:=235", "y:=161").Click
Browser("title:=Gmail").Page("title:=Gmail.*").webelement("Innertext:=Delete forever", "outertext:=Delete forever", "x:=188", "y:=136").Click
Now the issue is with last line....QTP doesnt throw any error ,but it doesnt delete any
RE: weblink issue - narayan1975gmail - 11-21-2009
Replaced last line as Browser("title:=Gmail").Page("title:=Gmail.*").webelement( "Innertext:=Delete forever", "html tag:=div", "index:=0").Click
still not working....Test run completed successfully but mails are not deleted.
Can anyone help?
RE: weblink issue - narayan1975gmail - 11-24-2009
Can someone pitch in?
RE: weblink issue - akash - 08-03-2010
Even i got same issue ....
any luck on this narayan.....
|