Using 'irb' and the following simple script seems to hang at the
'goto' statement. Anyone address this problem? I am using the latest
chromewatir 1.5.1.
require 'chrome_watir'
browser=ChromeWatir::Browser.new
browser.goto 'http://www.google.com'
puts '-- Never comes here! --'
i've written following code
require 'watir'
Watir::Browser.default = firefox
url=http://turagv2:8080/lotry/Login.do;
name=admin
password=admin
$b = Watir::Browser.start(url)
$b.text_field(:name, username).set(name)
puts 'test1'
$b.text_field(:name, password).set(password)
puts 'test2'
Can't you start two start clickers at once? Will they both try to access the
first pop up and if found close it?
So what i am suggesting is this:
ff.startClicker(ok)
$ff.startClicker(ok)
$ff.image(:name, /elete/).click
Wont this work Angrez?
I had a similar situation for IE, and i used the
Thanks for all your efforts. Much appreciated.
- Angrez
On Mon, Nov 16, 2009 at 4:43 PM, Alexandre neonoe123...@gmail.com wrote:
Le lundi 16 novembre de l'année 2009, vers 15 heures et 15 minutes, Angrez
Singh écrivait:
Glad to see that you solved it yourself. Can you post this to wiki so
maybe you can try putting an exit() after your last puts statement.
--
Pallavi
On Mon, Nov 16, 2009 at 12:43 PM, Mamunur Rashid mamun...@gmail.com wrote:
i've written following code
require 'watir'
Watir::Browser.default = firefox
url=http://turagv2:8080/lotry/Login.do;
name=admin
It might work, because both of them will be looking for the pop up to close.
When you click the delete button pop up will come, not sure which thread
will close the pop up. But second one will close second pop up if you are
using Auto IT.
In Firewatir the concept is bit different, I don't use
In 1.6.2 I made fireEvent action like
$test_browser.div(:class ,name).div(:xpath ,//d...@class ='class']
[3]).div(:class ,classname).text_field(:value, name).fireEvent
('ondblclick')
and it worked great.
After upgrading to 1.6.5 it just do nothing, it doesn't give any error
and looked like
Pallavi, Angrez hello,
Thank you for the replies.
I was trying your suggestion:
$ff.startClicker(ok)
$ff.startClicker(ok)
$ff.image(:name, /elete/).click
But it still didn't close the popup.
I am able to do it with watir like this:
Thread.new{system(rubyw myClicker.rb)}
$ie.image(:name,