Discussion:
[wtr-general] An expected error generated on click does not occur on click(*modifier)
Steve Parrado
2018-06-06 19:46:33 UTC
Permalink
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.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Steve Parrado
2018-06-14 12:29:10 UTC
Permalink
Has anyone seen similar behavior? I am still at a loss about this.
Post by Steve Parrado
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.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Titus Fortner
2018-06-14 15:54:50 UTC
Permalink
This would be a Chromedriver issue, so we'd need to see what commands
are getting sent to the driver.

Can you run both with `Selenium::WebDriver.logger.level = :info`?
Is the html public that we could get them a reproducible issue?
Post by Steve Parrado
Has anyone seen similar behavior? I am still at a loss about this.
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.
http://groups.google.com/group/watir-general
---
You received this message because you are subscribed to the Google Groups "Watir General" group.
For more options, visit https://groups.google.com/d/optout.
--
--
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.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Steve Parrado
2018-06-21 01:14:25 UTC
Permalink
I recreated it by navigating to a public facing website, identifying an
element at the top of the page, and then scrolling down and performing the
click and click+control. Here is the output:

irb(main):009:0> @browser.goto("http://www.newhomeguide.com")
=> "http://www.newhomeguide.com"
irb(main):010:0> @browser.send_keys :end
=> nil
irb(main):011:0> Selenium::WebDriver.logger.level = :info
=> :info
irb(main):012:0> @browser.element(:class, 'searchSubmit').click
2018-06-20 21:08:49 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/element
2018-06-20 21:08:49 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/element |
{"using":"xpath","value":".//*[contains(concat(' ', @class, ' '), '
searchSubmit ')]"}

2018-06-20 21:08:49 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":{"ELEMENT":"0.4022756665195595-2"}}
2018-06-20 21:08:49 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/element/0.4022756665195595-2/click
2018-06-20 21:08:50 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":13,"value":{"message":"unknown
error: Element \u003Cinput type=\"submit\" value=\"SEARCH\" class=\"searchS
ubmit\"> is not clickable at point (1040, 25). Other element would receive
the click: \u003Ca
href=\"https://newhomeguide.com/category/all\">...\u003C/a>\n (Session
info: chrome=67.0.3396.87)\n (Dri
ver info: chromedriver=2.40.565498
(ea082db3280dd6843ebfb08a625e3eb905c4f5ab),platform=Windows NT 6.3.9600
x86_64)"}}
Selenium::WebDriver::Error::UnknownError: unknown error: Element <input
type="submit" value="SEARCH" class="searchSubmit"> is not clickable at
point (1040, 25). Other element would receive the click:
<a href="https://newhomeguide.com/category/all">...</a>
(Session info: chrome=67.0.3396.87)
(Driver info: chromedriver=2.40.565498
(ea082db3280dd6843ebfb08a625e3eb905c4f5ab),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):12
from C:/Ruby23/bin/irb.cmd:19:in `<main>'
irb(main):013:0> @browser.element(:class, 'searchSubmit').click(:control)
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/element
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/element |
{"using":"xpath","value":".//*[contains(concat(' ', @class, ' '), '
searchSubmit ')]"}

2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":{"ELEMENT":"0.4022756665195595-2"}}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys |
{"value":["î?%"]}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/moveto
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/moveto |
{"element":"0.4022756665195595-2"}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/click
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/click |
{"button":0}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys |
{"value":["î?%"]}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
=> nil


What I noticed here is that the ".click(:control)" actually clicked the
event and behaved as if it were fired click event with the modifier, and it
opened a new tab.
Post by Titus Fortner
This would be a Chromedriver issue, so we'd need to see what commands
are getting sent to the driver.
Can you run both with `Selenium::WebDriver.logger.level = :info`?
Is the html public that we could get them a reproducible issue?
Post by Steve Parrado
Has anyone seen similar behavior? I am still at a loss about this.
Post by Steve Parrado
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)..
Post by Steve Parrado
Post by Steve Parrado
@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">...
Post by Steve Parrado
Post by Steve Parrado
ent would receive the click: <div class="panel-heading
border-light">...</div>
Post by Steve Parrado
Post by Steve Parrado
(Session info: chrome=66.0.3359.181)
(Driver info: chromedriver=2.38.552522
(437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 6.3.9600
x86_64)
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/response.rb:32:in
`initialize'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/bridge.rb:170:in
`execute'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/common/element.rb:74:in
`click'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:135:in
`block in click'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:650:in
`element_call'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:126:in
`click'
Post by Steve Parrado
Post by Steve Parrado
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.
Post by Steve Parrado
Post by Steve Parrado
@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.
Post by Steve Parrado
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
Post by Steve Parrado
In short: search before you ask, be nice.
http://groups.google.com/group/watir-general
---
You received this message because you are subscribed to the Google
Groups "Watir General" group.
Post by Steve Parrado
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
--
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.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Steve Parrado
2018-06-21 01:19:09 UTC
Permalink
I also realized that I was very much lacking data in my report, and for
that I apologize:

Ruby Version: ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]
Watir Version: 6.11.0
Browser: Chrome Version 67.0.3396.87 (Official Build) (64-bit)
Chromedriver Version: 2.40.565498
OS: Windows 8.1 Pro
Post by Steve Parrado
I recreated it by navigating to a public facing website, identifying an
element at the top of the page, and then scrolling down and performing the
=> "http://www.newhomeguide.com"
=> nil
irb(main):011:0> Selenium::WebDriver.logger.level = :info
=> :info
2018-06-20 21:08:49 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/element
2018-06-20 21:08:49 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/element |
searchSubmit ')]"}
2018-06-20 21:08:49 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":{"ELEMENT":"0.4022756665195595-2"}}
2018-06-20 21:08:49 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/element/0.4022756665195595-2/click
2018-06-20 21:08:50 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":13,"value":{"message":"unknown
error: Element \u003Cinput type=\"submit\" value=\"SEARCH\" class=\"searchS
ubmit\"> is not clickable at point (1040, 25). Other element would receive
the click: \u003Ca href=\"https://newhomeguide.com/category/all\">...\u003C/a>\n
(Session info: chrome=67.0.3396.87)\n (Dri
ver info: chromedriver=2.40.565498
(ea082db3280dd6843ebfb08a625e3eb905c4f5ab),platform=Windows NT 6.3.9600
x86_64)"}}
Selenium::WebDriver::Error::UnknownError: unknown error: Element <input
type="submit" value="SEARCH" class="searchSubmit"> is not clickable at
<a href="https://newhomeguide.com/category/all">...</a>
(Session info: chrome=67.0.3396.87)
(Driver info: chromedriver=2.40.565498
(ea082db3280dd6843ebfb08a625e3eb905c4f5ab),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):12
from C:/Ruby23/bin/irb.cmd:19:in `<main>'
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/element
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/element |
searchSubmit ')]"}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":{"ELEMENT":"0.4022756665195595-2"}}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys |
{"value":["î?%"]}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/moveto
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/moveto |
{"element":"0.4022756665195595-2"}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/click
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/click |
{"button":0}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
2018-06-20 21:09:01 INFO Selenium -> POST
session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys
2018-06-20 21:09:01 INFO Selenium >>>
http://127.0.0.1:9515/session/347b09a05ad4e6ffe8661cb3a0b0a9af/keys |
{"value":["î?%"]}
2018-06-20 21:09:01 INFO Selenium <-
{"sessionId":"347b09a05ad4e6ffe8661cb3a0b0a9af","status":0,"value":null}
=> nil
What I noticed here is that the ".click(:control)" actually clicked the
event and behaved as if it were fired click event with the modifier, and it
opened a new tab.
Post by Titus Fortner
This would be a Chromedriver issue, so we'd need to see what commands
are getting sent to the driver.
Can you run both with `Selenium::WebDriver.logger.level = :info`?
Is the html public that we could get them a reproducible issue?
Post by Steve Parrado
Has anyone seen similar behavior? I am still at a loss about this.
Post by Steve Parrado
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)..
Post by Steve Parrado
Post by Steve Parrado
@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">...
Post by Steve Parrado
Post by Steve Parrado
ent would receive the click: <div class="panel-heading
border-light">...</div>
Post by Steve Parrado
Post by Steve Parrado
(Session info: chrome=66.0.3359.181)
(Driver info: chromedriver=2.38.552522
(437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Windows NT 6.3.9600
x86_64)
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/response.rb:32:in
`initialize'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/remote/bridge.rb:170:in
`execute'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
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'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/selenium-webdriver-3.4.4/lib/selenium/webdriver/common/element.rb:74:in
`click'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:135:in
`block in click'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:650:in
`element_call'
Post by Steve Parrado
Post by Steve Parrado
from
C:/Ruby23/lib/ruby/gems/2.3.0/gems/watir-6.11.0/lib/watir/elements/element.rb:126:in
`click'
Post by Steve Parrado
Post by Steve Parrado
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.
Post by Steve Parrado
Post by Steve Parrado
@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.
Post by Steve Parrado
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
Post by Steve Parrado
In short: search before you ask, be nice.
http://groups.google.com/group/watir-general
---
You received this message because you are subscribed to the Google
Groups "Watir General" group.
Post by Steve Parrado
To unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
--
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.

watir-***@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+***@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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Search results for '[wtr-general] An expected error generated on click does not occur on click(*modifier)' (Questions and Answers)
5
replies
can i get question answer of asp.net ?
started 2006-10-11 00:02:47 UTC
software
Loading...