Has anyone seen similar behavior?  I am still at a loss about this.

On Thursday, June 7, 2018 at 12:00:07 AM UTC-4, Steve Parrado wrote:
>
> I was attempting to write a function that performed a ctrl+click so that 
> if the click caused a page navigation, it would be in a new window which 
> would leave the original window in a particular state.  It was during this 
> that I found that when I click an element that is obscured by another 
> object (perhaps due to responsive design issues) I get a message indicating 
> this (as expected)..
>
> @browser.element(:id, "button_login").click
> Selenium::WebDriver::Error::UnknownError: unknown error: Element <button 
> type="submit" id="button_login" class="btn btn-orange btn-block">...
> ent would receive the click: <div class="panel-heading border-light">...</
> div>
>   (Session info: chrome=66.0.3359.181)
>   (Driver info: chromedriver=2.38.552522 (
> 437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 6.3.9600 
> x86_64)
>         from C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/
> lib/selenium/webdriver/remote/response.rb:69:in `assert_ok'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/response.rb:32:in
>  
> `initialize'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/http/common.rb:83:in
>  
> `new'
>         from C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/
> lib/selenium/webdriver/remote/http/common.rb:83:in `create_response'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/http/default.rb:107:in
>  
> `request'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/http/common.rb:61:in
>  
> `call'
>         from C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/
> lib/selenium/webdriver/remote/bridge.rb:170:in `execute'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/oss/bridge.rb:579:in
>  
> `execute'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/oss/bridge.rb:328:in
>  
> `click_element'
>         from C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/
> lib/selenium/webdriver/common/element.rb:74:in `click'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:135:in
>  
> `block in click'
>         from 
> C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:650:in
>  
> `element_call'
>         from C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/
> elements/element.rb:126:in `click'
>         from (irb):1
>         from C:/Ruby23/bin/irb.cmd:19:in `<main>'
>
>
>
> However, when I perform a modified click on the same element (in this case 
> with :control) I get no error message.
>
> @browser.element(:id, "button_login").click(:control)
> => nil
>
>
> It seems to me that the error from the unmodified click should be present 
> in the modified click as the object being interacted with has not changed, 
> just the interaction on the object itself has.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
In short: search before you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to