[wtr-general] watir-webdriver not loading page with ajax correctly?

2012-10-25 Thread RJ
Im not sure if its ajax loading or something else (or their site detecting watir?) But this site (groupme.com) keeps timing out. def test_post_message_to_groupme browser.goto 'http://groupme.com' browser.link(:text = 'Log In').click browser.text_field(:id = 'session_phone_number').set

[wtr-general] Re: How to automate sub-menu items using watir.

2012-10-25 Thread RJ
what happens when you invoke the following? browser.div(:id = MenuBar_view_menu_0html_id).fire_event('onclick') -- 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

[wtr-general] Re: Click on Hidden button

2012-10-25 Thread RJ
in one of my script, I had to force visibility. Hope this helps browser.execute_script(document.getElementById('jqContextMenu').style.display='block';) browser.execute_script(document.getElementById('item_remove').style.display='block';) browser.div(:id = 'jqContextMenu').li(:id =

[wtr-general] Would like to use other attribute_value as element identifier...but how?

2012-09-21 Thread RJ
HTML Code: div class=cell row ident style=background-color: rgb(192, 218, 193); border-color: rgb(192, 218, 193); height: 104px; width: 163px; data--id=32143 data-column=0 data-row=1 div class=cell row ident style=background-color: rgb(189, 216, 156); border-color: rgb(189, 216, 156); height:

Re: [wtr-general] browser.confirm error

2012-06-26 Thread RJ
Thanks for the reply, but I'm still getting the following error when using browser.alert.ok Started E Finished in 61.727539 seconds. 1) Error: test_delete_user(UsersTest): Watir::Exception::UnknownObjectException: unable

[wtr-general] execute_script on win7/ie8 does not work

2012-06-25 Thread RJ
] + '_del').fire_event(onclick) Can anyone help. Thanks, Rj -- 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] browser.confirm error

2012-06-25 Thread RJ
Followed doc: http://rubydoc.info/gems/watir-webdriver/Watir/Alert watir-webdriver: 0.6.1 Please help. Thanks, RJ -- 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

[wtr-general] Re: execute_script on win7/ie8 does not work

2012-06-25 Thread RJ
after further testing - does not looklike it works on IE at all (regardless of win OS). Any ideas? Opened another thread trying to figure out if browser.confirm would help. any help, whether its getting execute_script or confirm to work would be appreciated. Thanks, RJ On Monday, June 25

[wtr-general] Re: Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-21 Thread RJ
thanks for all who responded... I tried all different approach for this, but none worked, so I decided to write my own wait... I know this might eventually lead to an infinite loop, so I burn that bridge when I get to it (but feel free to advise for a more long-term solution). Thanks. def

[wtr-general] benefits of using jquery selector

2012-02-16 Thread RJ
html element vs jquery selector Anybody know if there are any benefits of using one selector method over the other (for watir-webdriver) - if the element(s) can be accessed/selected either way? (assuming that there may be instances when only jquery selector would work, due to elements being

[wtr-general] Is there a wait_while_visible or wait_until_hidden or something similar?

2012-02-16 Thread RJ
how do I wait until this element disappears or is set to hidden again? div id=spinner_container div id=spinner style=visibility: hidden; img vspace=1 align=absmiddle src=../images/loading.gif style=margin-bottom: 1px;/ /div /div I already tried the following without much success:

[wtr-general] tests are failing with Errno::E14001

2012-02-14 Thread RJ
the application configuration is incorrect. Reinstalling the application may fix this problem. Can somebody help. Thanks, RJ -- 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: tests are failing with Errno::E14001

2012-02-14 Thread RJ
SOLVED: re-installing a previous version of tortoiseSVN (1.6.16) solved the above 14001 error I cant explain why...but I'm glad that my scripts are running again. Hope this helps anyone running watir-webdriver/ruby-devkit/ruby187 with tortoiseSVN (do not upgrade to 1.7+) -- Before posting,

[wtr-general] Re: Selecting an element based from another known element's position

2012-02-13 Thread RJ
.parent worked for me. Thanks for all the help. -- 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] Re: Selecting an element based from another known element's position

2012-02-10 Thread RJ
Unfortunately parent has multiple radiobox each followed by its own label My code looks like: selected_checkbox 'choice 1' if foo selected_checkbox 'choice 2' if bar ... selected_checkbox 'choice 18' if foo.bar def selected_checkbox selection browser.label(:text =

[wtr-general] Re: Selecting an element based from another known element's position

2012-02-10 Thread RJ
From Page Source: div id=ParentSelector ulli class=folder data=expand:trueAllul li class=selected data=icon:falsetitle=This is choice 1choice 1/li li class=selected data=icon:falsetitle=This is choice 2choice 2/li li class=selected

[wtr-general] Re: watir-webdriver + IE select dropdown not loading

2011-10-20 Thread RJ
fire_event('onchange') did not help -- 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 + right_click

2011-10-20 Thread RJ
Just curious to know, the technical readon why watir-webdriver has yet to implement an official right_click operation. Thanks, -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] watir-webdriver + IE select dropdown not loading

2011-10-19 Thread RJ
Another IE select issue (on XP-IE8): HTML: select title=Selection Display id=selection_display_option option value=opt1opt1/option option value=opt2opt2/option option selected=selected value=opt3opt3/option /select CODE on IRB: (this works) irb(main):056:0 option_selected = opt1

[wtr-general] watir-webdriver + protected mode in XP-IE8

2011-10-18 Thread RJ
Getting following error msg: Selenium::WebDriver::Error::NoSuchDriverError: Unexpected error launching Internet Explorer. Protected Mode must be set to the same value (enabled or disabled) for all zones. but this feature is not available on XP-IE8. What to do. Thanks, RJ -- Before posting

[wtr-general] Re: Unable to click tab in IE/FF

2011-10-15 Thread RJ
If inside a frame: ie.frame(:id = frame_name).link(:id = link_name).exists? Otherwise try .link(:id = link_name).fire_event(onclick$ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] watir-webdriver + javascript + userAgent

2011-10-14 Thread RJ
from whatsmyuseragent.com is: Your User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) I'm trying to run a browser version detection using userAgent but getting MSIE7.0 eventhough browser is IE8.0 Can you help. Or please provide an alternate solution for this. Thanks, RJ

[wtr-general] Re: watir-webdriver + javascript + userAgent

2011-10-14 Thread RJ
additional info (just in case): C:\gem list *** LOCAL GEMS *** rake (0.9.2) selenium-webdriver (0.2.1) watir-webdriver (0.2.4) C:\ruby -v ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: on-site / off-site Watir Training recommendations

2011-06-18 Thread RJ
Off-site: anywhere in the US On-site: NJ USA -- 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] on-site / off-site Watir Training recommendations

2011-06-14 Thread RJ
can anybody recommend available (on-site / off-site) watir training for QA engineers? -- 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