Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
weblink issue
#1
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 "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.
Reply
#2
Not Solved
change this "name:=trash" in to "text:=trash" and then try.
Reply
#3
Not Solved
Sorry, same issue persists
Reply
#4
Not Solved
Hi Narayan,

Try with the below, it would work fine.Smile

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
Reply
#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
#6
Not Solved
Source_index
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#7
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",  "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
Reply
#8
Not Solved
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?
Reply
#9
Not Solved
Can someone pitch in?
Reply
#10
Not Solved
Even i got same issue ....

any luck on this narayan.....
Reply


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,429 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)