Think they still haven't implemented it on webdriver yet: 
http://code.google.com/p/selenium/issues/detail?id=18

If you know your script is failing at a certain area and want to debug it:

-gem install pry
-Put a 'binding.pry' statement right before the part that's failing (don't 
include the single quotes)
-Run the script. It'll stop at the point where you called binding.pry and you 
can access everything (even local variables).




________________________________
 From: Rakesh Kapoor <[email protected]>
To: [email protected] 
Sent: Tuesday, September 17, 2013 4:33 PM
Subject: [wtr-general] how do i grab a existing open browser by handle.
 


i use firefix and am building my script. i have the script already openign 
firefox and posting the form.
however every time i fix the script, i have to start from the initial setup by 
b = Watir::Browser.new

is there a way, i can initiate Watir::Browser where i can attach it to a open 
browser that is already running in my machine by searching for title or 
something?

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.
 
[email protected]
http://groups.google.com/group/watir-general
[email protected]
 
--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to