Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
weblink issue
#5
Not Solved
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
Reply


Messages In This Thread
weblink issue - by narayan1975gmail - 11-19-2009, 04:00 PM
RE: weblink issue - by v_selvam - 11-19-2009, 06:09 PM
RE: weblink issue - by narayan1975gmail - 11-19-2009, 10:04 PM
RE: weblink issue - by sreekanth chilam - 11-19-2009, 10:40 PM
RE: weblink issue - by narayan1975gmail - 11-20-2009, 06:45 AM
RE: weblink issue - by basanth27 - 11-20-2009, 11:05 AM
RE: weblink issue - by narayan1975gmail - 11-20-2009, 11:43 AM
RE: weblink issue - by narayan1975gmail - 11-21-2009, 08:47 AM
RE: weblink issue - by narayan1975gmail - 11-24-2009, 08:09 AM
RE: weblink issue - by akash - 08-03-2010, 10:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Presence of WebLink and Webbutton hamzaz 1 2,225 07-29-2012, 03:49 PM
Last Post: sree.85
  Anchor tag (WebLink) always takes smart identification path!!! sepgs2004 3 4,430 02-09-2009, 08:44 PM
Last Post: sepgs2004
Question General RunTime Error when clicking a weblink manojmathew1984 4 4,124 11-28-2008, 04:08 PM
Last Post: manojmathew1984

Forum Jump:


Users browsing this thread: 1 Guest(s)