Sha256: 422a78f560117a178d978e245d8eaeb9eaf724b018dd9e6b9d8908f7a0b32a8c
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# Selenium::WebDriver::Element::ExtendClickAgain `Selenium::WebDriver::Element#click` sometimes fails because the element is not clickable and other element receives the click: ``` Element <button name="button">...</button> is not clickable at point (40, 881). Other element would receive the click: <footer>...</footer> ``` This gem extends `click` to avoid that. When `click` fails with `not clickable` error, this tries to center the element with executing JavaScript [`Element.scrollIntoView()`](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) and click it again. ## Installation Add this line to your application's Gemfile: ```ruby gem 'selenium-webdriver-element-extend_click_again' ``` And then execute: $ bundle Or install it yourself as: $ gem install selenium-webdriver-element-extend_click_again ## Usage ```ruby require 'selenium/webdriver/element/extend_click_again' ``` ## License The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
selenium-webdriver-element-extend_click_again-0.1.1 | README.md |