02-22-2010, 05:09 PM
(This post was last modified: 02-24-2010, 10:53 AM by devanggoel.)
can any one tell me the descriptive programing for clicking the link on web....like open the yahoo.com and click on the signin link.
|
descriptive programing to click the link on web
|
|
02-22-2010, 05:09 PM
(This post was last modified: 02-24-2010, 10:53 AM by devanggoel.)
can any one tell me the descriptive programing for clicking the link on web....like open the yahoo.com and click on the signin link.
02-22-2010, 06:52 PM
Try following
Code: Dim obj_ChkDesc
Set obj_ChkDesc=Description.Create
obj_ChkDesc(“Class Name”).value = “Link”
Obj_ChkDesc("name").value="Log in"
Browser().page().link(obj_ChkDesc).clickAlso you can use following to highlight the link Code: Browser().page().link(obj_ChkDesc).Highlight
02-23-2010, 05:03 PM
Code: systemutil.run "www.yahoo.com"
browser("name:=Yahoo").activate
browser("name:=Yahoo").page("name:=Yahoo_Page").weblink("outerhtml:=Inbox").clickCode: dim des
set des=description.create
des("micclass").value="Link"
set cnt=browser("yahoo").page("yahoo_page").childobject(des)
msgbox cnt.count
for i=0 to cnt.count-1
val_name=cnt(i).getroproperty("outerhtml")
if (val_name=Inbox) then
cnt(i).click
end if
Next
set des=nothing
Hi D.Baba-
Please wrap your codes in proper tags, which makes your post more readable. I did it for you this time ![]() @devanggoel - always put your thread title that is relevant to the query not a generalised one, this way we can identify the queries better while searching for it. by the way what do mean by 'programingghhhhhhhf'
02-26-2010, 03:59 PM
(This post was last modified: 02-26-2010, 04:01 PM by prasadworld321.)
------------------------------------------------------------------------------------
1.Descriptive programme for FR login. ------------------------------------------------------------------------------------ Code: InvokeApplication"E:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe"
dialog("text:=Login").winedit("window id:=3001").Set"test"
dialog("text:=Login").winedit("window id:=2000").Set"mercury"
dialog("text:=Login").winbutton("window id:=1").ClickDescriptive Programming for Gmail Login Page Code: SystemUtil.Run "iexplore.exe","www.gmail.com"
Browser("name:=Gmail.*").Page("title:=Gmail.*").WebEdit("name:=Email").Set "abc"
Browser("name:=Gmail.*").Page("title:=Gmail.*").WebEdit("name:=Passwd").SetSecure "xyz"
Browser("name:=Gmail.*").Page("title:=Gmail.*").WebButton("name:=Sign in").Click |
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| Child Object Not able to identified in Web Menu Link | noor | 0 | 2,234 |
01-21-2018, 04:44 PM Last Post: noor |
|
| Descriptive programing | kedala | 1 | 3,258 |
10-04-2016, 09:25 PM Last Post: venkatesh9032 |
|
| how to randomly Select any category link and randomly click on one of its options ? | sharavan | 0 | 3,355 |
11-18-2014, 12:24 AM Last Post: sharavan |
|
| How to click on a dynamic link on a website | Geekgirl | 3 | 5,260 |
11-28-2013, 11:53 AM Last Post: Jay |
|
| How to find which value is having link and which are all not having in Web table. | Sivakumar2186@gmail.com | 2 | 3,812 |
10-17-2013, 09:36 PM Last Post: Parke |
|