watir-extensions-element-screenshot icon indicating copy to clipboard operation
watir-extensions-element-screenshot copied to clipboard

Element Screenshot Support for watir

Results 9 watir-extensions-element-screenshot issues
Sort by recently updated
recently updated
newest added

Hi, at first thanks for your good work! I use watir 6.14.0 with your extension (watir-extensions-element-screenshot (0.0.3) on Firefox 85.0.1 with geckodriver 0.29.0. Here my sinple code: ``` require "rubygems"...

It causes an error when dimension is not a integer

``` Traceback (most recent call last): 2: from watir-test.rb:19:in `' 1: from /var/lib/gems/2.5.0/gems/chunky_png-1.3.11/lib/chunky_png/canvas/operations.rb:188:in `crop!' /var/lib/gems/2.5.0/gems/chunky_png-1.3.11/lib/chunky_png/canvas.rb:309:in `replace_canvas!': The provided pixel array should have 7506.4002685546875 items (ArgumentError) ``` Been getting the above...

Added option to save the screenshot or just to recieve it back as ChunkyPNG::Image so users are now able to work with the image in their automated test. Fixed error...

fix crop location.x

``` irb(main):010:0> browser.div(:id => "hplogo").screenshot("logo_google.png") Selenium::WebDriver::Error::WebDriverError: unexpected response, code=404, content-type="text/plain" Error - Unable to load Atom 'find_element' from file ':/ghostdriver/./third_party/webdriver-atoms/find_element.js' from /var/lib/gems/2.3.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:85:in `create_response' from /var/lib/gems/2.3.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/default.rb:90:in `request' from /var/lib/gems/2.3.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:59:in `call' from...

When capturing a screenshot of an element inside an iFrame, wd.location returns x and y locations relative to the iFrame. These iFrame locations should be used in the crop! function...

I am getting the below error when trying to capture screenshots of elements C:/Ruby200/lib/ruby/gems/2.0.0/gems/chunky_png-1.3.1/lib/chunky_png/canvas/opera tions.rb:175:in `crop!': Original image height is too small! (ChunkyPNG::OutOfBo unds) from C:/Ruby200/lib/ruby/gems/2.0.0/gems/watir-extensions-element-screen shot-0.0.2/lib/watir/extensions/element/screenshot.rb:11:in`screenshot' from angular_test.rb:15:in `'