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 nbkhic...@gmail.com 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-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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
= #Watir::Browser:0x1102968d0 url=about:blank title=



On Fri, Mar 22, 2013 at 5:28 AM, Željko Filipin zeljko.fili...@gmail.comwrote:

 On Fri, Mar 22, 2013 at 4:37 AM, Ekin Han nbkhic...@gmail.com 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-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
http://www.richdownie.com
http://github.com/richdownie

-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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 richdow...@gmail.com

 You cancreate an alias shorter than watir console.

 alias *wc*='irb -r watir-webdriver'

 RichDownie@ls ~  $ *wc*
  Watir::Browser.new
 = #Watir::Browser:0x1102968d0 url=about:blank title=



 On Fri, Mar 22, 2013 at 5:28 AM, Željko Filipin 
 zeljko.fili...@gmail.comwrote:

 On Fri, Mar 22, 2013 at 4:37 AM, Ekin Han nbkhic...@gmail.com 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-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 http://www.richdownie.com
 http://github.com/richdownie

 --
 --
 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 message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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 nbkhic...@gmail.com wrote:

 OK,thanks, that helps a lot


 2013/3/22 Rich Downie richdow...@gmail.com

 You cancreate an alias shorter than watir console.

 alias *wc*='irb -r watir-webdriver'

 RichDownie@ls ~  $ *wc*
  Watir::Browser.new
  = #Watir::Browser:0x1102968d0 url=about:blank title=



 On Fri, Mar 22, 2013 at 5:28 AM, Željko Filipin zeljko.fili...@gmail.com
  wrote:

 On Fri, Mar 22, 2013 at 4:37 AM, Ekin Han nbkhic...@gmail.com 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-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 You received this message because you are subscribed to the Google
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 http://www.richdownie.com
 http://github.com/richdownie

 --
 --
 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 message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 --
 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 message because you are subscribed to the Google Groups
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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 nbkhic...@gmail.com wrote:

 OK,thanks, that helps a lot
 
 2013/3/22 Rich Downie richdow...@gmail.com
 You cancreate an alias shorter than watir console.
 
 alias wc='irb -r watir-webdriver'
 
 RichDownie@ls ~  $ wc
  Watir::Browser.new
 = #Watir::Browser:0x1102968d0 url=about:blank title=
 
 
 
 On Fri, Mar 22, 2013 at 5:28 AM, Željko Filipin zeljko.fili...@gmail.com 
 wrote:
 On Fri, Mar 22, 2013 at 4:37 AM, Ekin Han nbkhic...@gmail.com 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-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 -- 
 http://www.richdownie.com
 http://github.com/richdownie
 -- 
 -- 
 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 message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 -- 
 -- 
 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 message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-general+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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 I get is
.../gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/response.rb:52:in
 
`assert_ok': Element is not clickable at point (967, 651). Other element 
would receive the click: div class=commitButton id=cancel.../div 
(Selenium::WebDriver::Error::UnknownError)

The site isn't public currently.

Thanks

Aaron

On Thursday, March 14, 2013 11:12:37 AM UTC-7, Aaron Schwartz wrote:

 I am running watir-webdriver on a webpage with multiple forms (no frames). 
 The issue seems to be that when the text boxes are out of view (you'd have 
 to scroll to see them), that chromedriver cannot find and access the text 
 boxes. Firefox has no problem with this.

 Is this a known issue or am I doing something else wrong? Any easy fixes?

 Phantomjs has the same error as chrome

 The test of the error:
 Watir::Exception::UnknownObjectException: unable to locate element, using 
 {:id=some_text_id, :tag_name=select}

 Thanks for your help,

 Aaron


-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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 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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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+unsubscr...@googlegroups.com

--- 
You received this message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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.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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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 
would normally be seen by the system when you click something, including 
onClick..  So no idea why .click would not work for you there instead 
of.fire_event

On Thursday, March 21, 2013 12:57:21 PM UTC-7, mc060200778 wrote:

 Hi All,

 Thanks for the comments. However, i have solved the problem as follow
 *@browser.a(:text,Customer Lines).fire_event(onclick)*

 it is perfectly running for me. 
 But one thing which i am still figuring out is why it did not work for 
 simple Click method and why it worked with fire_event(onClick)?

 Thanks, 

 On Thu, Mar 21, 2013 at 3:14 AM, Chuck van der Linden 
 cvande...@climate.com javascript: wrote:

 On Wednesday, March 20, 2013 4:33:55 AM UTC-7, mc060200778 wrote:

 Hi,

 i am facing problem in automating the following HTML code

 a href=#divCustomerLinesTab data-toggle=tabCustomer Linesspan 
 class=tabLoading id=divCustomerLinesTabTab style=display: 
 inline;/span/a

 I am using the following lines but NOTHING IS working for me :( please 
 help  advise

 @browser.span(:class,**tabLoading).click
 *@browser.link(:href,http://TestApp:8080/CustomerManagement/;).click*
 *@browser.a(:text,CustomerLines).click*
 *
 *


 Firstly, actual 'results' for each of those --especially if it's an error 
 message, but even if it's 'nothing got clicked and the script kept 
 running'-- are really really helpful to the people you are asking to assist 
 you.

 Secondly lets look at each of your items in turn.

 @browser.span(:class,**tabLoading).click

 Presuming for a moment this did not give an error, and that there is but 
 one single span in the entire page with this class, then you might try 
 clicking the parent. Given that the span had an ID that did not appear to 
 be randomly generated, I'd suggest using that instead, since they are 
 supposed to be unique on the page, to identify the element you want

 @browser.span(:id = divCustomerLinesTabTab).click 
 or maybe try clicking it's parent, a link, something more commonly clicked

 @browser.span(:id = divCustomerLinesTabTab).parent.click 

 Next you tried

 @browser.link(:href,http://**TestApp:8080/**CustomerManagement/http://testapp:8080/CustomerManagement/
 ).click
 *
 *
 I don't generally use the entire URL when selecting by href because it 
 will change if your test env changes. Either go for a partial match using a 
 portion of the url as a regex, or use something else like the link text 
 (presuming you don't expect that to change often) However in this case, 
 the href given is nothing like the value you supplied, so I would expect it 
 to generate an error that it could not locate the object. If you want to 
 select that by href, then your code should have looked more like this

 @browser.link(:href = #divCustomerLinesTab).click 

 Next you had this, trying to click the anchor tag (link) by the text
 *
 *
 @browser.a(:text,**CustomerLines).click
 *
 *
 This is another thing I'd expect to generate a not found error, since the 
 link text you give above, does not match the HTML you gave. Presuming the 
 HTML is right, you should be using something like this (I use 'link' 
 instead of the tag name 'a' since a lot of folks think of anchor tags as 
 'links' and for me anyway I feel it's more readable code. 

 @browser.link(:text = **Customer Lines).click

 A good way to test this stuff out is to use IRB, and try out the commands 
 against the browser that way. Using the .flash method first (as Super Kevy 
 showed hin his answer) is a good way to see if you are really locating the 
 thing you think you are. 

  -- 
 -- 
 Before posting, please read http://watir.com/support. In short: search 
 before you ask, be nice.
  
 watir-...@googlegroups.com javascript:
 http://groups.google.com/group/watir-general
 watir-genera...@googlegroups.com javascript:
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-genera...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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.   Sometimes you might need to try .fire_event(onclick)instead 
of 
.click.  I've heard of cases where that happens, no real idea why.. 

On Thursday, March 21, 2013 1:06:06 PM UTC-7, mc060200778 wrote:

 Still it is not working for me.
 The script execution continues successfully giving a perception that 
 button has been clicked but the button is not clicked infact.

 in rendered html code, i found this button nested in my Div (almost 8th 
 child div), can it be the reason of subject problem?



 On Thu, Mar 21, 2013 at 2:48 AM, Chuck van der Linden 
 cvande...@climate.com javascript: wrote:

 On Wednesday, March 20, 2013 6:24:09 AM UTC-7, richdownie wrote:

 Have you tried waiting for the element?

 http://watirwebdriver.com/**waiting/http://watirwebdriver.com/waiting/


 That's pretty much what I would have suggested, especially if this is a 
 page with a lot of ajax type operations, you may need to wait a tiny bit 
 for the button to be in the proper state, especially if there is client 
 side code that is examining and validating the values filled in on the form 
 you are about to submit.

 I'd start with something like this

 @browser.button(:id, btnAddNewCustomer).when_present.click

 If that does not work, much as I hate to suggest it, you might need a 
 fixed sleep right before the button click

 sleep 1
 @browser.button(:id, btnAddNewCustomer).click
  



 On Wed, Mar 20, 2013 at 7:36 AM, Sohail Mirza mrz...@gmail.com wrote:

 Finally i am able to resolve it but it works sometime and sometime it 
 does not work
 *@browser.input(:value=Create New Customer).click*

 please advise another convenient way to handle it?
 Thanks,



 On Tue, Mar 19, 2013 at 6:36 PM, Sohail Mirza mrz...@gmail.com wrote:

 No Success Alex. Sorry

 On Tue, Mar 19, 2013 at 5:22 PM, Alex Shtayer asht...@gmail.comwrote:

 I don't think that problem in fact that div is nested, but more that 
 click event is not working as it should

 Try

 browser.button(:id, *btnAddNewCustomer*).fire_**event(onclick)
 or
 browser.button(:id, *btnAddNewCustomer*).fire_**
 event(onmousedown)
 or
 browser.button(:id, *btnAddNewCustomer*).send_keys :enter
 or
 browser.button(:id, *btnAddNewCustomer*).click
 browser.button(:id, *btnAddNewCustomer*).click
 to see whether problem in click action

 -- 
 -- 
 Before posting, please read http://watir.com/support. In short: 
 search before you ask, be nice.
  
 watir-...@googlegroups.com
 http://groups.google.com/**group/watir-generalhttp://groups.google.com/group/watir-general
 watir-genera...@**googlegroups.com

  
 --- 
 You received this message because you are subscribed to the Google 
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, 
 send an email to watir-genera...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  



  -- 
 -- 
 Before posting, please read http://watir.com/support. In short: search 
 before you ask, be nice.
  
 watir-...@googlegroups.com
 http://groups.google.com/**group/watir-generalhttp://groups.google.com/group/watir-general
 watir-genera...@**googlegroups.com

  
 --- 
 You received this message because you are subscribed to the Google 
 Groups Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to watir-genera...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  




 -- 
 http://www.richdownie.com
 http://github.com/richdownie 

  -- 
 -- 
 Before posting, please read http://watir.com/support. In short: search 
 before you ask, be nice.
  
 watir-...@googlegroups.com javascript:
 http://groups.google.com/group/watir-general
 watir-genera...@googlegroups.com javascript:
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 Watir General group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to watir-genera...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[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. 
 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 I get is
 .../gems/selenium-webdriver-2.31.0/lib/selenium/webdriver/remote/response.rb:52:in
  
 `assert_ok': Element is not clickable at point (967, 651). Other element 
 would receive the click: div class=commitButton id=cancel.../div 
 (Selenium::WebDriver::Error::UnknownError)

 The site isn't public currently.

 Thanks

 Aaron

 On Thursday, March 14, 2013 11:12:37 AM UTC-7, Aaron Schwartz wrote:

 I am running watir-webdriver on a webpage with multiple forms (no 
 frames). The issue seems to be that when the text boxes are out of view 
 (you'd have to scroll to see them), that chromedriver cannot find and 
 access the text boxes. Firefox has no problem with this.

 Is this a known issue or am I doing something else wrong? Any easy fixes?

 Phantomjs has the same error as chrome

 The test of the error:
 Watir::Exception::UnknownObjectException: unable to locate element, using 
 {:id=some_text_id, :tag_name=select}

 Thanks for your help,

 Aaron



-- 
-- 
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 message because you are subscribed to the Google Groups 
Watir General group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.