Please ensure to include your code between [code][/code] tags while asking or replying to questions.

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

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.)
Post: #1
Solved: 1 Year, 2 Months, 4 Weeks, 7 Hours, 54 Minutes, 50 Seconds ago descriptive programing to click the link on web

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.
Find all posts by this user
Quote this message in a reply
02-22-2010, 06:52 PM
Post: #2
Solved: 1 Year, 2 Months, 4 Weeks, 7 Hours, 54 Minutes, 50 Seconds ago RE: descriptive programing
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).click

Also you can use following to highlight the link

Code:
Browser().page().link(obj_ChkDesc).Highlight
Visit this user's website Find all posts by this user
Quote this message in a reply
02-23-2010, 05:03 PM
Post: #3
Solved: 1 Year, 2 Months, 4 Weeks, 7 Hours, 54 Minutes, 50 Seconds ago RE: descriptive programing
Code:
systemutil.run "www.yahoo.com"

browser("name:=Yahoo").activate

browser("name:=Yahoo").page("name:=Yahoo_Page").weblink("outerhtml:=Inbox").click
or
Code:
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

D.Baba Fakruddin
Visit this user's website Find all posts by this user
Quote this message in a reply
02-25-2010, 01:49 PM (This post was last modified: 02-25-2010 01:53 PM by Saket.)
Post: #4
Solved: 1 Year, 2 Months, 4 Weeks, 7 Hours, 54 Minutes, 50 Seconds ago RE: descriptive programingghhhhhhhf
Hi D.Baba-
Please wrap your codes in proper tags, which makes your post more readable. I did it for you this time Smile
@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'

Find all posts by this user
Quote this message in a reply
02-26-2010, 03:59 PM (This post was last modified: 02-26-2010 04:01 PM by prasadworld321.)
Post: #5
Solved: 1 Year, 2 Months, 4 Weeks, 7 Hours, 54 Minutes, 50 Seconds ago RE: descriptive programingghhhhhhhf
------------------------------------------------------------------------------------
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").Click

Descriptive 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
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  How to click on a dynamic link on a website Geekgirl 3 595 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 564 10-17-2013 09:36 PM
Last Post: Parke
  Web Table Descriptive Language karraaruna 3 847 07-04-2013 08:06 PM
Last Post: karraaruna
Sad Not working if not hard coded (web link).click dlaureano 2 619 02-11-2013 12:57 PM
Last Post: ravi.gajul
  Unable to Click on Mutiple Links in Web Table branjitk 6 1,639 06-12-2012 05:49 PM
Last Post: sshukla12



User(s) browsing this thread: 1 Guest(s)