[wtr-general] Re: Chromedriver Unable To locate element that Firefox has no issue with

2013-03-22 Thread Chuck van der Linden
is the thing you are trying to click superimposed on the screen by the thing webdriver is complaining about? Maybe try clicking the div instead? On Friday, March 22, 2013 4:12:07 PM UTC-7, Aaron Schwartz wrote: > > I fixed the Phantomjs issue by adding some wait_until_present statements. > So

Re: [wtr-general] Re: how to click button from nested divs

2013-03-22 Thread Chuck van der Linden
when you say 'it is not working' but we have no idea of what it (the code you tried) is, it's hard to provide much in the way of further assistance. Is this site somewhere publicly accessible? The level of nesting (other than making the HTML "fun" to read, should not really matter. Sometime

Re: [wtr-general] Re: problem

2013-03-22 Thread Chuck van der Linden
That is strange. I expect it is due to the fact the link does not have a proper href, so there is very likely client side javascript that is set to react to the onClick event which is what makes things happen. What is strange is that to my knowledge, using .click fires several events that wo

[wtr-general] Re: Watir Webdriver Logger

2013-03-22 Thread Alex Shtayer
Just a suggestion I like to use log4r gem for all logging procedures, of course mixing with cucumber. It is pretty simple library that has everything that is needed with all these levels and outputters type of things. http://log4r.rubyforge.org/ -- -- Before posting, please read http://watir

[wtr-general] Re: Unable to select the radiobutton and also unable to detect the iFrame

2013-03-22 Thread Alex Shtayer
yes, you need such intermediate things only if you have two iframes with absolutely same attributes -- -- 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+u

[wtr-general] Re: Browser resize on watir-classic.

2013-03-22 Thread Alex Shtayer
Before going on watir-webdriver, I was using autoit for these operations. There are some other solutions, but in total you can't do that using only watir methods -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.c

[wtr-general] Re: [watir-webdriver] how to manage timeout for after click event

2013-03-22 Thread Alex Shtayer
Solution worked like a charm. Thanks Dan for it Regarding delays, yes you absolutely right and I also think that is unacceptable, but I can't do anything, because I just must to run automation scripts on cheaper devices. Customers have much expensive ones:) -- -- Before posting, please read

[wtr-general] Re: Chromedriver Unable To locate element that Firefox has no issue with

2013-03-22 Thread Aaron Schwartz
I fixed the Phantomjs issue by adding some wait_until_present statements. Some of the dynamic content of the page was not loading in time for the watir- webdriver code to catch it. I'm still having issues with chrome, however. @browser.image(:id, "image_button_id").when_present.click The error

Re: [wtr-general] Is that possible to add a console in watir webdriver?

2013-03-22 Thread Rich Downie
No problem Sent from my iPhone On Mar 22, 2013, at 8:08 AM, Ekin Han wrote: > OK,thanks, that helps a lot > > 2013/3/22 Rich Downie >> You cancreate an alias shorter than watir console. >> >> alias wc='irb -r watir-webdriver' >> >> RichDownie@ls ~ $ wc >> >> Watir::Browser.new >> => # >>

Re: [wtr-general] Is that possible to add a console in watir webdriver?

2013-03-22 Thread Oscar Rieken
you could also add the pry gem to your project and it will give you a REPL where ever you bind to pry. https://github.com/pry/pry On Fri, Mar 22, 2013 at 8:08 AM, Ekin Han wrote: > OK,thanks, that helps a lot > > > 2013/3/22 Rich Downie > >> You cancreate an alias shorter than watir console. >

Re: [wtr-general] Is that possible to add a console in watir webdriver?

2013-03-22 Thread Ekin Han
OK,thanks, that helps a lot 2013/3/22 Rich Downie > You cancreate an alias shorter than watir console. > > alias *wc*='irb -r watir-webdriver' > > RichDownie@ls ~ $ *wc* > >> Watir::Browser.new > => # > > > > On Fri, Mar 22, 2013 at 5:28 AM, Željko Filipin > wrote: > >> On Fri, Mar 22, 2013 at

Re: [wtr-general] Is that possible to add a console in watir webdriver?

2013-03-22 Thread Rich Downie
You cancreate an alias shorter than watir console. alias *wc*='irb -r watir-webdriver' RichDownie@ls ~ $ *wc* >> Watir::Browser.new => # On Fri, Mar 22, 2013 at 5:28 AM, Željko Filipin wrote: > On Fri, Mar 22, 2013 at 4:37 AM, Ekin Han wrote: > >> just type 'watir console' in cmd > > > Is t

Re: [wtr-general] Is that possible to add a console in watir webdriver?

2013-03-22 Thread Željko Filipin
On Fri, Mar 22, 2013 at 4:37 AM, Ekin Han wrote: > just type 'watir console' in cmd Is this really harder to type? irb -r watir-webdriver Željko -- https://leanpub.com/watirbook -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-ge