[wtr-general] Re: Save image in firefox: problem?
Use a different browser. Or better yet configure your test env to disable the captcha or replace it with a stub. Most capchas are somebody elses code so there is little value in spending your time testing them. On Wednesday, April 11, 2012 6:13:40 PM UTC-7, Bruno Pio wrote: Hi! How can I save an image in firefox? I put: require 'watir-webdriver' ff = Watir::Browser.new ff.goto https://www.libertyreserve.com/en/account; ff.browser.image(:id, captcha).save(c:\\captcha.jpg) And I got: NotImplementedError: not currently supported by WebDriver from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.5.4/ lib/watir -webdriver/elements/image.rb:48:in `save' from (irb):4 from C:/Ruby193/bin/irb:12:in `main' How can I solve this problem? Any help? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Save image in firefox: problem?
Lol .. Using a different browser will not help; image.save always throws a NotImplementedError .. On Thursday, 12 April 2012 13:03:19 UTC+10, Chuck van der Linden wrote: Use a different browser. Or better yet configure your test env to disable the captcha or replace it with a stub. Most capchas are somebody elses code so there is little value in spending your time testing them. On Wednesday, April 11, 2012 6:13:40 PM UTC-7, Bruno Pio wrote: Hi! How can I save an image in firefox? I put: require 'watir-webdriver' ff = Watir::Browser.new ff.goto https://www.libertyreserve.com/en/account; ff.browser.image(:id, captcha).save(c:\\captcha.jpg) And I got: NotImplementedError: not currently supported by WebDriver from C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.5.4/ lib/watir -webdriver/elements/image.rb:48:in `save' from (irb):4 from C:/Ruby193/bin/irb:12:in `main' How can I solve this problem? Any help? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Save image in Firefox
Thanks for the reply. I'll open a new ticket. In the mean time, is there a way to get the image's binary data? On Dec 21, 4:54 am, Angrez Singh ang...@gmail.com wrote: As of now FireWatir doesn't support saving a image. You can open a JIRA ticket for the same. - Angrez On Sat, Dec 19, 2009 at 2:42 AM, hliauw hli...@gmail.com wrote: Hi all, Does firewatir support image(...).save like in ie? I have been testing on ie for a while, and have a need to test using firefox. some scripts I had uses image.save and it has been failing on firefox. Here are some snippets: browser = Watir::Browser.new() browser.goto(url) browser.image(:index, 1).save(c:\\tempfile.gif) When I run the script, it doesn't throw any error, but the file is never created. When I use irb, it gives me the following error on save: = TypeError: elements_IMG[0].save is not a function Google and Watir search doesn't help me much. Anybody have a clue? -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general
[wtr-general] Re: Save image in Firefox
Thanks for the reply. So, what the tests does is basically save the image into a file and calculate the md5 digest from the file. Is there a way to get the image's binary data without saving it to a file first? On Dec 21, 4:54 am, Angrez Singh ang...@gmail.com wrote: As of now FireWatir doesn't support saving a image. You can open a JIRA ticket for the same. - Angrez On Sat, Dec 19, 2009 at 2:42 AM, hliauw hli...@gmail.com wrote: Hi all, Does firewatir support image(...).save like in ie? I have been testing on ie for a while, and have a need to test using firefox. some scripts I had uses image.save and it has been failing on firefox. Here are some snippets: browser = Watir::Browser.new() browser.goto(url) browser.image(:index, 1).save(c:\\tempfile.gif) When I run the script, it doesn't throw any error, but the file is never created. When I use irb, it gives me the following error on save: = TypeError: elements_IMG[0].save is not a function Google and Watir search doesn't help me much. Anybody have a clue? -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -- You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general