I have tried, using this code:
require 'watir'
browser = Watir::IE.new
browser.goto('http://www.google.com')
browser2 = Watir::IE.attach(:title, /Google/)
browser2.text_field(:name, 'q').set('Watir')
browser2.button(:name, 'btnG').click_no_wait
The click_no_wait still cannot run. Is the code
Relax
-Original Message-
From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On
Behalf Of HAHAHA
Sent: Friday, December 12, 2008 9:14 AM
To: Watir General
Subject: [wtr-general] Re: button.Click_No_Wait only highlights the button,
does not click
Why I cannot
/Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index,
1).text)[1]
Natasha wrote:
Hi All,
I want to access the value of the LI element, which is within an UL
element.
Following is the HTML structure:
UL class=inline id=ulInfoLinks
LI
Signed in as STRONG
Bret
Since we have customiztion on the 1.4 watir code, we not able to
upgrade now. is there any tweak?
Thanks
Shiv
On Dec 12, 7:20 am, Bret Pettichord b...@pettichord.com wrote:
This is a bug in Watir 1.4. It is fixed in Watir 1.5 and Watir 1.6. Time
to upgrade.
Bret
Shiv wrote:
Hi,
On Fri, Dec 12, 2008 at 12:09 PM, Bret Pettichord b...@pettichord.comwrote:
/Signed in as (.*)/.match(browser.ul(:id, 'ulInfoLinks').li(:index,
1).text)[1]
nice usage of MatchData captures
woot!
bret +1
best,
marekj
Natasha wrote:
Hi All,
I want to access the value of the LI
I'm learning something new everyday.
This is awesome.
From: watir-general@googlegroups.com
[mailto:watir-gene...@googlegroups.com] On Behalf Of marekj
Sent: Friday, December 12, 2008 1:47 PM
To: watir-general@googlegroups.com
Subject: [wtr-general]
All,
Has anyone discovered a way of accessing an application's registry
keys with Ruby? I am attempting to access the registry key of the
application under test at runtime of my automated script, so that I
can get the build number of the app from the registry. Thanks in
advance for any help.
Check out Win32::Registry - a while ago I was able to use it to do
exactly what you describe.
On Fri, Dec 12, 2008 at 12:39 PM, jas.shel...@hotmail.com wrote:
All,
Has anyone discovered a way of accessing an application's registry
keys with Ruby? I am attempting to access the registry
Hello,
I am running into a similar problem also. I was trying to run a script
and got this error:
-
unknown OLE server: 'AutoItX3.Control'
---
As per the entry in FAQ, I tried entering the regsvr32 AutoItX3.dll
command from a command prompt, but get: 'regsvr32' is not a
I am posting a sample code which i am using in my script
*def test_001_Login
$batchCode=0
# attach a new browser window
$ie = Watir::IE.attach(:url,about:blank)
Watir::IE.attach_timeout = 10.0
...
...
Hi Margam,
Weird that regsvr32 is not found hmm...
Anyways could try and search for the regsvr32.exe file in location C:
\WINDOWS\system32
If present run the command from C:\WINDOWS\system32, else try and get
a copy of regsvr32 from another system and copy it to your system.
Should work ..
Hi Shelton
Here is an example of reading and writing the registry.
require 'win32/registry'
#Common Registry Paths
hkey_local_machine=Win32::Registry::HKEY_LOCAL_MACHINE
hkey_current_user=Win32::Registry::HKEY_CURRENT_USER
# Returns the Microsoft Registry path to the Microsoft software
On Thu, Dec 11, 2008 at 6:14 PM, Margam nk.mar...@gmail.com wrote:
Hi John,
So I tried using require 'watir/browser' in my script and set
watir_browser=ie from command prompt and everything is OK. IE is
opened and the scripts runs fine.
But when I type set watir_browser=firefox from
13 matches
Mail list logo