Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
descriptive programing to click the link on web
#1
Solved: 2 Years, 11 Months, 2 Weeks, 2 Days, 11 Hours, 57 Minutes, 58 Seconds ago
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.
Reply
#2
Solved: 2 Years, 11 Months, 2 Weeks, 2 Days, 11 Hours, 57 Minutes, 58 Seconds ago
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
Reply
#3
Solved: 2 Years, 11 Months, 2 Weeks, 2 Days, 11 Hours, 57 Minutes, 58 Seconds ago
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
Reply
#4
Solved: 2 Years, 11 Months, 2 Weeks, 2 Days, 11 Hours, 57 Minutes, 58 Seconds ago
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'

Reply
#5
Solved: 2 Years, 11 Months, 2 Weeks, 2 Days, 11 Hours, 57 Minutes, 58 Seconds ago
------------------------------------------------------------------------------------
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
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  how to randomly Select any category link and randomly click on one of its options ? sharavan 0 1,094 11-18-2014, 12:24 AM
Last Post: sharavan
  How to click on a dynamic link on a website Geekgirl 3 1,415 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 1,350 10-17-2013, 09:36 PM
Last Post: Parke
  Web Table Descriptive Language karraaruna 3 1,419 07-04-2013, 08:06 PM
Last Post: karraaruna
Sad Not working if not hard coded (web link).click dlaureano 2 1,155 02-11-2013, 12:57 PM
Last Post: ravi.gajul



Users browsing this thread: 1 Guest(s)