[wtr-general] Watir-Webdriver slow execution speed in FF 36

2015-03-10 Thread Andrew Deschain
I recently updated the watir-webdriver gem and i was pretty surprised that the execution speed of my has significantly decreased. Does anyone else experiences this issue or/and know how to overcome this? Stack: Mac OS 10.9.5 Ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]

[wtr-general] Re: Fill up values in popup with nested frames is slow in IE

2015-01-08 Thread Andrew Petrenko
Yes, I'm using page-object gem. Could you provide some example? About typing into any text field. I had this problem also and I resolved this just change IE driver from x64 to x32. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: Fill up values in popup with nested frames is slow in IE

2015-01-06 Thread Andrew Petrenko
, 2015 8:12:34 PM UTC+2, niartseoj wrote: what happens when you remove sleep 2? On Thursday, December 25, 2014 11:51:42 AM UTC-5, Andrew Petrenko wrote: Hello. I have popups with frames (not iframes). And when I set values into textboxes, selectlists and others it takes about 5 seconds

[wtr-general] Re: Fill up values in popup with nested frames is slow in IE

2015-01-06 Thread Andrew Petrenko
, January 5, 2015 8:12:34 PM UTC+2, niartseoj wrote: what happens when you remove sleep 2? On Thursday, December 25, 2014 11:51:42 AM UTC-5, Andrew Petrenko wrote: Hello. I have popups with frames (not iframes). And when I set values into textboxes, selectlists and others it takes about 5

Re: [wtr-general] Re: Fill up values in popup with nested frames is slow in IE

2015-01-06 Thread Andrew Petrenko
Yes, the same. I use watir-webdriver v0.6.11. -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this

[wtr-general] Fill up values in popup with nested frames is slow in IE

2014-12-29 Thread Andrew Petrenko
Hello. I have popups with frames (not iframes). And when I set values into textboxes, selectlists and others it takes about 5 seconds for every control. I wonder, is this a defect of watir or there is some other way for workaround? Here is my code: @browser.window(:title = Add New Plan).use do

[wtr-general] Scraping visible text / Locate by formatted text

2014-11-06 Thread Andrew Le
In Ruby, I'm trying to scrape a page's visible text, save it to a database, and be able to reference the containing element later on. The problem is that all the text methods return formatted text and collapse tags that no longer match the markup. Consider the following example: div id=el_id

[wtr-general] Re: Radio button is getting deselected within fraction of section after sellecting it with set mehod in Watir Webdriver

2014-05-28 Thread Andrew Leaf
Hello Kamal, Can you provide the HTML you're trying to work with as well as the Watir-Webdriver code that is giving you difficulties? Andrew On Tuesday, May 27, 2014 5:55:53 AM UTC-5, kamal nalla wrote: Hi All, While selecting radio button in Watir Web driver, it is getting selected

[wtr-general] Re: [Watirwebdriver]- How to select current date from date picker

2014-02-13 Thread Andrew Leaf
On Wednesday, February 12, 2014 5:58:17 AM UTC-6, Fayaz Sk wrote: Tried as below as well but still its not selecting the active currentdate: @browser.span(:class = add-on sm-icon-calendar).click @browser.a(:class = ui-state-default ui-state-highlight ui-state-active).click There are

[wtr-general] Re: Just started with Watir

2014-01-23 Thread Andrew Leaf
. - https://leanpub.com/cucumber_and_cheese -- Andrew -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received

[wtr-general] Re: watir-webdriver exec_script failing with Firefox 24/25

2013-10-31 Thread Andrew Leaf
to the browser would fail # In irb, all of this code works as expected. @browser.goto yahoo.com @browser.execute_script alert() -- Andrew -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir

[wtr-general] Re: Issues with execute_script on Win7/IE9

2013-06-05 Thread Andrew Leaf
On Monday, June 3, 2013 9:28:50 AM UTC-5, enroxorz wrote: So I know that this issue was resolved here: https://groups.google.com/d/msg/watir-general/FqVBzjNuOqA/7HtFJoJYzzkJ but when I tested it I was running on Windows XP SP 3 with IE 8. We just got new testing servers in that are

[wtr-general] Re: Waitir: Ignoring modal wait dialogs during ajax call

2013-05-10 Thread Andrew Leaf
dismisses the modal for the user. Without page HTML when the modal is visible and an indication of which line is giving the failure in your Watir code, it's difficult to provide any further guidance. If you have HTML available, paste it in so we can further troubleshoot. Andrew -- -- Before

[wtr-general] Re: Waitir: Ignoring modal wait dialogs during ajax call

2013-05-10 Thread Andrew Leaf
You're welcome, however, I had a copy and paste failure there. browser = Watir::Browser.start url is the same as browser = Watir.new browser.goto url On Friday, May 10, 2013 11:04:09 AM UTC-5, Dan wrote: Thanks Andrew! You learn something new everyday! On Friday, May 10, 2013 11:58:31

[wtr-general] Re: Waitir: Ignoring modal wait dialogs during ajax call

2013-05-10 Thread Andrew Leaf
One last correction: browser = Watir::Browser.start url is the same as browser = Watir::Browser.new browser.goto url -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Re: Watir-webdriver and Ruby 2.0.0 - known compatabilty issues?

2013-03-18 Thread Andrew Leaf
Thanks for the words of caution with the FFI gem. Cheers, Andrew On Monday, March 18, 2013 12:13:23 PM UTC-5, Chuck van der Linden wrote: On Friday, March 8, 2013 12:32:44 AM UTC-8, Željko Filipin wrote: On Thu, Mar 7, 2013 at 5:58 PM, Andrew Leaf and...@clockwork.net wrote: Ruby 2.0

Re: [wtr-general] Re: Watir-webdriver and Ruby 2.0.0 - known compatabilty issues?

2013-03-08 Thread Andrew Leaf
Thank you for the guidance, Željko. Ruby 2.0 it is! Cheers, Andrew -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

[wtr-general] Watir-webdriver and Ruby 2.0.0 - known compatabilty issues?

2013-03-06 Thread Andrew Leaf
? Regards, ★ Andrew Leaf Leaf, Software Test Engineer Clockwork Active Media Systems Twitter: @avleaf Strategy ★ Design ★ Technology ★ Content http://www.clockwork.net -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir

[wtr-general] Re: Released Watir 1.9.2.rc1

2011-07-13 Thread Andrew Vida
 pm, Andrew Vida andrewjv...@gmail.com wrote: I was experiencing issues with Watir::IE#send_keys after upgrading to Watir 1.9.2 (IE 8/Windows 7). After installing Watir 1.9.2.rc1, my test suite passes.  Thanks to all on the team for fix! Andy -- Before posting, please read http

[wtr-general] Re: Released Watir 1.9.2.rc1

2011-07-11 Thread Andrew Vida
I was experiencing issues with Watir::IE#send_keys after upgrading to Watir 1.9.2 (IE 8/Windows 7). After installing Watir 1.9.2.rc1, my test suite passes. Thanks to all on the team for fix! Andy -- Before posting, please read http://watir.com/support. In short: search before you ask, be

[wtr-general] watir-webdriver: undefined method `status_code' for #Watir::Browser:0x42840c0 (NoMethodError)

2011-03-02 Thread Andrew Gallo
Hi All, I'm having an issue with the following script not returning the status_code of the current response page. I'm probably not applying the correct method for the browser object. Any help would be most appreciated. Regards, Andrew G. require 'rubygems' require 'watir-webdriver' browser

Re: [wtr-general] Re: watir-webdriver: undefined method `status_code' for #Watir::Browser:0x42840c0 (NoMethodError)

2011-03-02 Thread Andrew Gallo
to get the HTTP status code, I want to avoid using celerity as it is headless and I want to be able to use a real browser for the testing. I originally thought that watir and celerity shared the same api. Thanks, Andrew G. # # @return [Fixnum] status code of the last request # def

Re: [wtr-general] Re: watir-webdriver: undefined method `status_code' for #Watir::Browser:0x42840c0 (NoMethodError)

2011-03-02 Thread Andrew Gallo
Just to give you more info on this. I'm trying to migrate my tests written in celerity over to watir-webdriver. Unfortunately, I'm finding that a few of the methods in celerity are missing in watir-webdriver. Andrew G. On Thu, Mar 3, 2011 at 12:15 PM, Andrew Gallo gallo.and...@gmail.comwrote

[wtr-general] Watir require xxx error?

2009-10-06 Thread Andrew
Getting an error while starting up the program on this code where I am extending SelectList (file name is watir_or.rb) require 'rubygems' require 'watir' require 'win32ole' module Watir class Picker SelectList # picker specific methods end end The error is ./watir_or.rb:8:

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-06-16 Thread Andrew
I got past this error, but not all of the tests appear to be working yet. After getting the latest code from git, I copied the watir \commonwatir\unittests\setup folder to Ruby\lib\ruby\gems\1.8\gems \watir-1.6.2\unittests. However, core_tests.rb won't run any tests, but window_test.rb will run

[wtr-general] Re: XPath and ñ

2009-06-03 Thread Andrew
Thanks, I'll check that out. On Jun 3, 9:29 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jun 3, 2009 at 3:17 PM, Andrew andre...@gmail.com wrote: If the ñ character is anywhere in my html file, it appears to be breaking the xpath selectors I'm using. A long time ago I

[wtr-general] Re: XPath and ñ

2009-06-03 Thread Andrew
Looks like that fixed it in my initial testing. Thanks! On Jun 3, 9:29 am, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Wed, Jun 3, 2009 at 3:17 PM, Andrew andre...@gmail.com wrote: If the ñ character is anywhere in my html file, it appears to be breaking the xpath selectors I'm

[wtr-general] Re: XPath and ñ

2009-06-03 Thread Andrew
Just for the sake of having a complete question/answer, you just need to add the following two lines to your ruby script: require “win32ole” WIN32OLE.codepage = WIN32OLE::CP_UTF8 Source: http://zeljkofilipin.com/2006/03/15/utf-8-and-ruby/ On Jun 3, 9:36 am, Andrew andre...@gmail.com wrote

[wtr-general] field in page names 'class'

2009-04-20 Thread andrew . dahl
I have a field which should be defined as class ViewActivityPatternPage Taza::Page field(:class) {logon_frame.span (:id, /.*:ActivityClass$/)} ... end but as soon as the page object is instantiated I get undefined method `class_field' for

[wtr-general] Re: Accessing text elements in a span

2009-04-14 Thread andrew . dahl
Thanks, It worked - except that before_text and after_text seem to be reversed in watir 1.6.3. I used after_text and got what I needed. Andy On Apr 13, 7:09 pm, orde ohil...@gmail.com wrote: Looks like this would do it: puts browser.link(:index, 1).before_text On Apr 13, 2:31 pm,

[wtr-general] First level children only

2009-04-14 Thread andrew . dahl
I have a large tree of nested divs, and I want to get an array of just the direct children of any particular div. I do not know ahead of time how many divs there will be at any level. Starting from a div, what is the Watir code for getting the divs that are direct children (and yes, there are

[wtr-general] Re: First level children only

2009-04-14 Thread andrew . dahl
How can xpath be used to return an array of divs? What would the xpath look like? On Apr 14, 10:30 am, Michael Hwee michael_h...@yahoo.com wrote: Can you try xpath? - Original Message From: andrew.d...@lthree.com andrew.d...@lthree.com To: Watir General

[wtr-general] Accessing text elements in a span

2009-04-13 Thread andrew . dahl
if I have some html that looks like span id='myid' text1 a link text/a text 2 select.../select text 3 /span what is the Watir command to pull out just 'text 2'? Andy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[wtr-general] IE crashes at end of test

2009-04-09 Thread andrew . dahl
IEEXPLORE.EXE – Application Error The instruction at “0x0580715d” referenced memory at “0x8ccc0082”. The memory could not be “written”. Click on OK to terminate the program Click on CANCEL to debug the program Andrew --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: Are there IE Settings that can cause Watir to fail?

2009-04-08 Thread andrew . dahl
uidewire ClaimCenter text' By putting some traces in frame.rb inside the watir 1.6.3 project, I know that it is never entering the for loop that loops over all the frames. On Apr 8, 12:11 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi Andrew! Could you please provide a sample of your code

[wtr-general] Re: Performance Testing

2009-04-04 Thread Andrew McFarlane
is because the testing responsibility changed to someone other than me. If you have your watir script(s) created, this is pretty easy and inexpensive--at least to drive the load. Andrew McFarlane Date: Thu, 2 Apr 2009 14:37:21 -0600 Subject: [wtr-general] Re: Performance Testing From: lisa.cris

[wtr-general] Field type changes

2009-03-16 Thread andrew . dahl
I have a table cell that sometimes holds a span and sometimes holds a select list. I was trying a begin/rescue like this; begin puts looking for select list @row.cell(:index, 2).select_list(:index, 1) rescue Exception = e puts looking for span

[wtr-general] Re: Field type changes

2009-03-16 Thread andrew . dahl
1) The column def is part of a larger table def. I would have to either repeat the column def or the entire table to handle the two types. 2) Defining multiple columns would make it impossible for me to scan down that column and choose a row based on a value in that column. 3) Defining multiple

[wtr-general] Re: Overiding onclick javascript

2009-03-13 Thread andrew . dahl
What follows is a working solution and some lessons learned in handling popups. Thanks for everyone that has helped along the way. I needed to handle confirmation popups. After trying autoit based solutions without success, I decided to try a solution that has worked for me in the past -

[wtr-general] Re: Overiding onclick javascript

2009-03-12 Thread andrew . dahl
Yea, I've tried passing it as a parm with no luck also. Everything says it is supposed to work, but I can't get it. On Mar 12, 12:11 pm, Andy Sipe ajs.gene...@gmail.com wrote: Take a look at this W3 schools link, it may help:http://www.w3schools.com/jsref/jsref_onkeypress.asp Note how they

[wtr-general] Re: Overiding onclick javascript

2009-03-11 Thread andrew . dahl
When I tried this I got undefined method `Document' for #Watir::IE:0x4288648 (NoMethodError) Is Watir::IE the correct object to be using here? On Mar 11, 8:53 am, Andy Sipe ajs.gene...@gmail.com wrote: You should be able to read it using xpath or some other technique. I don't believe

[wtr-general] Re: Overiding onclick javascript

2009-03-11 Thread andrew . dahl
Here is a sample. This code does not throw any exceptions. js1,2,3 all result in a popup. js 4 does not - indicating that it is not finding the element I want. I gaurantee that the html element I am looking for is a child of top_frame. In fact, the code that calls this block checks that the html

[wtr-general] Re: enabled_popup internal error

2009-03-05 Thread andrew . dahl
Just no luck. Still not seeing any popup. roles_page.bottom_delete.click_no_wait# = no popup displayed but if I use roles_page.bottom_delete.click #=== popup comes right up On Mar 5, 10:17 am, Jim Matthews jim_m...@swbell.net wrote: One thing I forgot to mention:

[wtr-general] Re: enabled_popup internal error

2009-03-04 Thread andrew . dahl
I was basing my code on example 4. Use click_no_wait on a button I know will cause a popup, and then call enabled_popup. The call from enabled_popup never returns. I can post the entire exception trace if that helps. On Mar 4, 8:26 am, Jim Matthews jim_m...@swbell.net wrote: From your first

[wtr-general] enabled_popup internal error

2009-03-03 Thread andrew . dahl
Trying to execute enabled_popup and it is throwing an exception undefined local variable or method `hwnd' for #Watir::Frame: 0x3d7b4d4 I checked the source for enabled_popup and it does seem to have an undeclared variable. Is this working for other people. Working on latest version of watir.