[wtr-general] Re: Watir-Classic 3.4.0 Released!

2013-01-30 Thread Ste
Hi, I decided to upgrading Ruby and Watir with the latest versions (Ruby 1.9.3 and Watir-Classic 3.4.0) and IE from 7 to 8 but, after some simple refactoring I found an issue that I cannot solve. With the previous versions of Ruby and Watir the same code worked fine. The problem is related

[wtr-general] query

2013-01-30 Thread Sohail Mirza
How do i check version of my installed watir? Thanks -- -- 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

Re: [wtr-general] query

2013-01-30 Thread Joe Fleck
Command line Ruby - v Or Gem list All lower case On Jan 30, 2013 12:56 PM, Sohail Mirza mrz...@gmail.com wrote: How do i check version of my installed watir? Thanks -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: query

2013-01-30 Thread captin
gem -v watir On Wednesday, January 30, 2013 11:56:49 AM UTC-6, mc060200778 wrote: How do i check version of my installed watir? Thanks -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] query

2013-01-30 Thread Sohail Mirza
Thanks Joe, it helped. On Wed, Jan 30, 2013 at 10:00 PM, Joe Fleck joeflec...@gmail.com wrote: Command line Ruby - v Or Gem list All lower case On Jan 30, 2013 12:56 PM, Sohail Mirza mrz...@gmail.com wrote: How do i check version of my installed watir? Thanks -- -- Before

[wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Hi folks, I need to select sub menu item. How can i automate this? I am using Watir-Classic gem. The view source shows following li a href=/MyDemoTest/Menu/LoadView?*menuItemKey=1* onclick=ShowLoadingIndicator();Test Management/a /li Thanks, -- -- Before posting, please read

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Hi, First thing.. make sure you use firebug or developer tool to get the html. Don't use view source. You will need to first expose the submenu and then select the submenu item you want. Repost the html code here and we will be better able to help you. Joe On Jan 30, 2013 1:55 PM, Sohail Mirza

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
okay, i do that and reverts back. Meanwhile i have another question which i ask in separate email thread. Thanks On Wed, Jan 30, 2013 at 10:58 PM, Joe Fleck joeflec...@gmail.com wrote: Hi, First thing.. make sure you use firebug or developer tool to get the html. Don't use view source.

[wtr-general] Watir Classic versus Watir-WebDriver?

2013-01-30 Thread Sohail Mirza
Hi, I need to test my web application in Google Chrome. My web application is developed using MVC + Jquery technology. Can i use Watir-Classic to automate my application in Chrome or i need to use Watir-webdriver? Thanks. -- -- Before posting, please read http://watir.com/support. In short:

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Joe, Are you asking for this? i used Chrome Develope Tool and found the following. li class=potato-menu-item potato-menu-has-vertical Main1 ul class=subMenu potato-menu-group potato-menu-vertical style=left: 0px; display: none; li class=potato-menu-item a

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Hi Sohail, Yes. @browser.li(:class=potato-menu-item potato-menu-has-vertical).click @browser.a(:text='Sub Menu 1').click Sometimes it is difficult to run these steps in irb. I would suggest creating a method then calling it in irb. do first def click_sub_menu()

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Joe, i tried following @browser.li(:class=potato-menu-item potato-menu-has-vertical).click @browser.a(:text='Sub Menu 1').click D:/Watir/Examples/Test1.rb:4:in `main': undefined method `li' for nil:NilClass (NoMethodError) On Wed, Jan 30, 2013 at 11:43 PM, Joe Fleck joeflec...@gmail.com

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Okay. you need to change my @browser to what you initialized your browser as. Joe # if you have to sign in do that On Wed, Jan 30, 2013 at 2:48 PM, Sohail Mirza mrz...@gmail.com wrote: Joe, i tried following @browser.li(:class=potato-menu-item potato-menu-has-vertical).click

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Yes Joe, you are right. i changed @browser to what i initialized and now the following line is working. browser.li(:class=potato-menu-item potato-menu-has-vertical).click However, i am getting another error for second line *browser.a(:text='Sub Menu 1').click* * *

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Sorry my mistake here. Sub Menu 1 was a dummy name. i replaced it with real name and now it is working fine. Great *Thanks a lot Joe for your kind help. Much appreciated.* On Wed, Jan 30, 2013 at 11:51 PM, Joe Fleck joeflec...@gmail.com wrote: Okay. you need to change my @browser to what

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
No problem. On Wed, Jan 30, 2013 at 3:04 PM, Sohail Mirza mrz...@gmail.com wrote: Sorry my mistake here. Sub Menu 1 was a dummy name. i replaced it with real name and now it is working fine. Great Thanks a lot Joe for your kind help. Much appreciated. On Wed, Jan 30, 2013 at 11:51 PM,

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Joe, Currently my script is working with FireFox as i am using watir-webdriver. Lets say if i want to make the same script compatible with Google Chrome what pre-requisists i should i follow? Do i need to install ChromDriver? if yes how to download and configure it? what should i put in require

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
Yes you will need to install the chromeDriver. If you download this book: Homebrewer's Guide to Watir it will walk through all the necessary steps. You can find it here https://leanpub.com/watirbook joe On Wed, Jan 30, 2013 at 3:17 PM, Sohail Mirza mrz...@gmail.com wrote: Joe, Currently

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Sohail Mirza
Well the issue mentioned below has been resolved. I just copied the chromedriver binary file at the location defined in my Path environment variable Thanks On Thu, Jan 31, 2013 at 12:42 AM, Sohail Mirza mrz...@gmail.com wrote: Joe, i downloaded chromedriver file and extracted it. When i run

Re: [wtr-general] How to automate Sub Menu using Wtir?

2013-01-30 Thread Joe Fleck
You need to go here http://code.google.com/p/chromedriver/downloads/list download the driver and place it in your ruby/bin folder. Joe On Wed, Jan 30, 2013 at 3:42 PM, Sohail Mirza mrz...@gmail.com wrote: Joe, i downloaded chromedriver file and extracted it. When i run my script, i am

Re: [wtr-general] Re: Watir-Classic 3.4.0 Released!

2013-01-30 Thread Željko Filipin
On Wed, Jan 30, 2013 at 5:41 PM, Ste porcarelli.stef...@gmail.com wrote: From IRB, the same commands still continuos to work fine Please share relevant HTML and Ruby code. Željko -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Watir Classic versus Watir-WebDriver?

2013-01-30 Thread Željko Filipin
On Wed, Jan 30, 2013 at 8:14 PM, Sohail Mirza mrz...@gmail.com wrote: Can i use Watir-Classic to automate my application in Chrome or i need to use Watir-webdriver? watir-classic gem can only automate Internet Explorer. If you want to automate Crome, you have to use watir-webdriver gem.

Re: [wtr-general] Watir Classic versus Watir-WebDriver?

2013-01-30 Thread Sohail Mirza
Hi, Thanks for your reply. I have following simple example to automate a scenario in Chrome but i am getting following error when i execute it. (FYI: The following Test1.rb works fine in FF browser) *Test1.rb* require 'watir-webdriver' browser = Watir::Browser.new :chrome browser.goto

Re: [wtr-general] Watir Classic versus Watir-WebDriver?

2013-01-30 Thread Željko Filipin
On Wed, Jan 30, 2013 at 10:21 PM, Sohail Mirza mrz...@gmail.com wrote: from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2 You have an old version of selenium-webdriver gem. Pleaseupdate it to 2.29.0 and try again. Željko -- -- Before posting, please read

Re: [wtr-general] Watir Classic versus Watir-WebDriver?

2013-01-30 Thread Sohail Mirza
Thanks, how can i update selenium-webdriver gem? please On Thu, Jan 31, 2013 at 1:27 AM, Željko Filipin zeljko.fili...@gmail.comwrote: On Wed, Jan 30, 2013 at 10:21 PM, Sohail Mirza mrz...@gmail.com wrote: from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.27.2 You have an old

Re: [wtr-general] Watir Classic versus Watir-WebDriver?

2013-01-30 Thread Željko Filipin
On Wed, Jan 30, 2013 at 10:36 PM, Sohail Mirza mrz...@gmail.com wrote: how can i update selenium-webdriver gem? Go to command line and type this to update all gems: gem update Željko -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] watir-classic issue with execute_script and JSON

2013-01-30 Thread captin
I have encountered an issue with execute_script using IE9 with ruby 1.9.3p327 and watir-classic 3.4.0. I was doing some research and found my exact same issue detailed at Stack Overflowhttp://stackoverflow.com/questions/14142905/issue-with-execute-script, but the thread is stale (and I'm too

[wtr-general] watir, watir-webdriver, watir-classic: history and current state?

2013-01-30 Thread jw
Hey gang, I developed a very robust framework for a company in 2009-2011 using watir and converted to watir-webdriver in late 2011- early 2012. During the conversion I had to make many horrible compromises (inserting retry statements, wait statements, etc.), and watir-webdriver still gave

[wtr-general] Question on how to access Selenium interfaces from something created by watir-webdriver?

2013-01-30 Thread Arkie
selenium-webdriver (2.29.0) watir-webdriver (0.6.2) Hi there. What I am trying to do is access the localSession object from a Watir browser. I'm unsure on what I need to do to to my object to access its Selenium bits. I did a google search on various combinations of watir-webdriver and

[wtr-general] Re: Question on how to access Selenium interfaces from something created by watir-webdriver?

2013-01-30 Thread Dan
If you just want to examine the values seems like you could do something like this: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_webstorage_session b.execute_script(return sessionStorage.clickcount)