[wtr-general] watir-webdriver href javascript

2013-02-06 Thread Sohail Mirza
Hi, how would you automate following Javascript link in watir-webdriver? a href='javascript:selectDevice(122334455,12121212,#divAddCustomerLine);'Select/a Thanks -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Re: watir-webdriver href javascript

2013-02-06 Thread Alex Shtayer
What do you mean by automate? How to click on the element? You can use usual method like: browser.link(:text, Select).click or if due any reason click method does not work: browser.link(:text, Select).fire_event(onclick) or browser.link(:text, Select).fire_event(onmousedown) On Wednesday,

[wtr-general] Re: help please

2013-02-06 Thread Alex Shtayer
Maybe, you can try browser.div(:*id, idDiv_PWD_UsernameExample*).send_keys blah-blah or browser.div(:*id, idDiv_PWD_UsernameExample*).click browser.send_keys blah-blah That solution works for me perfectly (for text in divs) On Saturday, February 2, 2013 8:19:11 PM UTC+2, mc060200778 wrote:

[wtr-general] Re: Getting constant net/protocol.rb:140:in `rescue in rbuf_fill': Timeout::Error exception for Watir-webdriver after couple hours of use

2013-02-06 Thread Alex Shtayer
The same exception we get when IEDriver is not installed at all, so does anybody has situation when driver stopped to respond or hanged up? It should be reproducible whether you have more or less complex test suite On Tuesday, February 5, 2013 1:27:16 PM UTC+2, Alex Shtayer wrote: Env: 1.

Re: [wtr-general] input type=image

2013-02-06 Thread Alex Shtayer
Input is a parent class for all inputs (like buttons, checkboxes, text_fields and etc), so if you can't use any sub-class of elements due you input is a special one (like *input type=image*), you can use just browser.input and watir will look for all inputs (buttons, checkboxes, unusual and

[wtr-general] Re: .attach method

2013-02-06 Thread Alex Shtayer
Actually you can. And without any problem through usual browser.window(:title=Browser title).use do code end or even to sub-window browser.window(:title=Browser title).use do code browser.window(:title=Browser title).use do code browser.window(:title=Browser title).use do code

[wtr-general] Re: How to run watir script onan already opened Chrome Browser

2013-02-06 Thread Alex Shtayer
On watir through .attach method on watir-webdriver through browser.window(title).use On Friday, February 1, 2013 6:19:27 PM UTC+2, mc060200778 wrote: Hi, I wanted to know How to run watir script on an already opened Chrome Browser. I dont want to open new Chrome Instance. THe web

Re: [wtr-general] Re: watir-webdriver href javascript

2013-02-06 Thread Sohail Mirza
Thanks Alex, its working with me. On Wed, Feb 6, 2013 at 1:18 PM, Alex Shtayer ashta...@gmail.com wrote: What do you mean by automate? How to click on the element? You can use usual method like: browser.link(:text, Select).click or if due any reason click method does not work:

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-06 Thread Željko Filipin
On Mon, Feb 4, 2013 at 11:13 PM, Phuoc Can Hua h...@huaonline.com wrote: I've got scripts which are running with IE6. Now I want to run them with Firefox 18. I haven't managed to get the browser launched. Please read this:

[wtr-general] Re: Unable to acces text_field inside a frame coz of some #document tag in the HTML.

2013-02-06 Thread Alex Shtayer
Okay, so provide HTML that you see in IE developer tool $ie.frame(:name,centent).present? = true but $ie.frame(:name,centent).text_field(:name,validateDealer).present? flase so, maybe you have one more sub frame? but it is really not good (it seems that frame is empty or what) irb(main):015:0

Re: [wtr-general] How to run watir script onan already opened Chrome Browser

2013-02-06 Thread Željko Filipin
On Fri, Feb 1, 2013 at 5:19 PM, Sohail Mirza mrz...@gmail.com wrote: I wanted to know How to run watir script on an already opened Chrome Browser. If you opened the Chrome manually, then you can not automate it with Watir. If your script opened another Chrome window, see this:

Re: [wtr-general] .attach method

2013-02-06 Thread Željko Filipin
On Sat, Feb 2, 2013 at 5:45 PM, Jim Evans james.h.evans...@gmail.comwrote: Additionally, a large use case for attaching to an existing browser window is in manipulating popup browser windows[1], and WebDriver does provide a Window API for that purpose. How watir-webdriver exploits that API, I

[wtr-general] Re: How to handle download bar in IE 9

2013-02-06 Thread Alex Shtayer
I automate such kind of things through AutoIT due pop-ups are not usual window and cannot be attached or something On Tuesday, July 17, 2012 8:32:27 AM UTC+3, Agung Surya wrote: Hi, I'm having a problem regarding access the new pop up in IE 9 using Watir This pop up regarding the save or

Re: [wtr-general] Re: How to handle download bar in IE 9

2013-02-06 Thread Joe Fleck
I use Sikuli to handle such pop up windows. AutoIT is also a good alternative. Joe On Wed, Feb 6, 2013 at 6:53 AM, Alex Shtayer ashta...@gmail.com wrote: I automate such kind of things through AutoIT due pop-ups are not usual window and cannot be attached or something On Tuesday, July 17,

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

2013-02-06 Thread Alex Shtayer
General impression: I created hundreds of cases for different functionality (in some cases really complex one) on watir classic and firewatir. After that I spent last six months to migrate everything on one platform (watir-webdriver) as it helps me keep code for all browsers much more

[wtr-general] Re: Unable to find the chromedriver executable

2013-02-06 Thread Alex Shtayer
Once more http://code.google.com/p/selenium/wiki/ChromeDriver Download and copy mentioned file for example in: C:\Ruby193\bin -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

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

2013-02-06 Thread Jarmo Pertman
Hi! I just noticed that you had Ruby 1.9.3 vs 1.9.2 and Watir-Classic 3.3.0 vs 3.4.0 in your error messages. Which one was it actually and why do they differ? Can you try to copy the watir-classic gem's json2.js file over with the contents of

[wtr-general] Re: Problems with Select Lists in my application

2013-02-06 Thread Alex Shtayer
Refer to: http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups I am using solution #9 for more than 3 years and it works just fine -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

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

2013-02-06 Thread captin
Jarmo, My apologies for the versioning miscommunication. My initial post and initial error messages are correct with Ruby 1.9.3 and Watir-Classic 3.4.0, but the line json2.src='file:///C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.3.0/lib/watir-classic/ext/json2.js'; is probably what

Re: [wtr-general] How to run Watir with Firefox 18?

2013-02-06 Thread Phuoc Can Hua
After installing firewatire and commented out following lines I managed to get rid of all errors. Now my firefox is launched (with Watir::Browser.new) :-) require 'watir-webdriver' require 'watir/contrib/enabled_popup' Since I've launched IE with Watir::IE.new everything is no longer working