From 82641b737160b2763d25291a4f0bb96d52282a1c Mon Sep 17 00:00:00 2001 From: a0o Date: Mon, 18 Jun 2018 21:49:56 +0300 Subject: [PATCH] Fix for fix --- lib/watir-get-image-content/image.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/watir-get-image-content/image.rb b/lib/watir-get-image-content/image.rb index 9c597e6..53a8bdd 100644 --- a/lib/watir-get-image-content/image.rb +++ b/lib/watir-get-image-content/image.rb @@ -13,7 +13,7 @@ def to_x_base64(target) ctx.drawImage(arguments[0], 0, 0); var dataURL = canvas.toDataURL("image/#{target}"); return dataURL.replace(/^data:image\\/(png|jpg|gif);base64,/, "");} - driver.execute_script js, @element, natural_width, natural_height + driver.execute_script js, @element, naturalwidth, naturalheight end def to_png_base64