Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
hard reading variable
#3
Solved: 10 Years, 9 Months ago
But, what are you running? All I see there are some object references. That code will not perform any action on your AUT.

See if this helps:

Code:
Set oBrowser = Browser("micclass:=browser")
Set oPage = Page("micclass:=Page")
Set UserName = oPage.WebEdit("name:=username", "index:=0")
Set PassWd = oPage.WebEdit("name:=password", "index:=1")
Set LoginLink = oPage.Link("innertext:=login")
Set oDialog = oBrowser.Dialog("text:=Avviso di Protezione")
Set btnSi = Browser("micclass:=Browser").Dialog("text:=Avviso di Protezione").WinButton("text:=&Sì")

Try to use only the properties that are enough to uniquely identify the object. Also, while you at it, can you double check the WinButton's text property again?
Reply


Messages In This Thread
hard reading variable - by stevol - 06-03-2008, 05:52 PM
RE: hard reading variable - by Ankur - 06-03-2008, 06:46 PM
RE: hard reading variable - by Anshoo Arora - 06-04-2008, 04:09 AM
RE: hard reading variable - by stevol - 06-05-2008, 12:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,040 09-28-2016, 09:16 PM
Last Post: supputuri
  Reading an amount from statement shipu 0 1,822 12-24-2013, 01:42 AM
Last Post: shipu
Sad Not working if not hard coded (web link).click dlaureano 2 2,744 02-11-2013, 12:57 PM
Last Post: ravi.gajul
  reading a value for GIF image sujaravi123 1 2,358 03-29-2012, 07:47 PM
Last Post: Ankesh
  Reading the position (x,y) of a text in WebElement writetoprabha 2 6,214 05-30-2011, 02:08 PM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 2 Guest(s)