What is the error you are getting? Also, note that rautomation 0.6.3 and 0.7.0 throws an error. Did you update to the latest win32screenshot?
On Feb 28, 2:52 pm, hillary <[email protected]> wrote: > any reason why win32/screenshot would have a problem? > > > > > > > > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote: > > > No, there shouldn't be any difference how the browser object is > > created since RAutomation doesn't depend on Watir at all and the > > dependency between Watir-RAutomation shouldn't play any role in here > > either... > > > Jarmo > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote: > > > so it's not working, because the latest version of rautomation having a > > > problem with how taza starts up the watir browser event. > > > def self.watir_ie(params) > > > require 'watir' > > > puts "running watir" > > > if params[:attach] > > > browser = Watir::IE.find(:title, //) > > > end > > > browser || Watir::IE.new > > > end > > > end > > > > I'm sure it's the latest version, because with the previous version of > > > rautomation and the pre release version of watir i didn't get a 'no such > > > file to load -- watir/ie' error. i can't change the code snippet because > > > for some reason taza tries to open firefox. > > > > Any reason why the latest version of rautomation would have a problem > > with > > > starting the browser with b = Watir::IE.new? > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman wrote: > > > > > Yes, since that method is deleted a long time ago already. Use > > > > Win32::Screenshot instead. > > > > > First, install Win32::Screenshot > > > > gem install win32screenshot > > > > > Then, take the screenshot by providing browser.rautomation as a > > > > parameter: > > > > Win32::Screenshot::Take.of(:rautomation, > > > > browser.rautomation).write("screenshot.png") > > > > > More examples athttps://github.com/jarmo/win32screenshot > > > > > Jarmo Pertman > > > > ----- > > > > IT does really matter -http://itreallymatters.net > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote: > > > > > for the pre-release version of watir (3.0.rc2) I get a no method > > error > > > > > > my code: > > > > > browser.screen_capture($file_path,true,false) > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote: > > > No, there shouldn't be any difference how the browser object is > > created since RAutomation doesn't depend on Watir at all and the > > dependency between Watir-RAutomation shouldn't play any role in here > > either... > > > Jarmo > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote: > > > so it's not working, because the latest version of rautomation having a > > > problem with how taza starts up the watir browser event. > > > def self.watir_ie(params) > > > require 'watir' > > > puts "running watir" > > > if params[:attach] > > > browser = Watir::IE.find(:title, //) > > > end > > > browser || Watir::IE.new > > > end > > > end > > > > I'm sure it's the latest version, because with the previous version of > > > rautomation and the pre release version of watir i didn't get a 'no such > > > file to load -- watir/ie' error. i can't change the code snippet because > > > for some reason taza tries to open firefox. > > > > Any reason why the latest version of rautomation would have a problem > > with > > > starting the browser with b = Watir::IE.new? > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman wrote: > > > > > Yes, since that method is deleted a long time ago already. Use > > > > Win32::Screenshot instead. > > > > > First, install Win32::Screenshot > > > > gem install win32screenshot > > > > > Then, take the screenshot by providing browser.rautomation as a > > > > parameter: > > > > Win32::Screenshot::Take.of(:rautomation, > > > > browser.rautomation).write("screenshot.png") > > > > > More examples athttps://github.com/jarmo/win32screenshot > > > > > Jarmo Pertman > > > > ----- > > > > IT does really matter -http://itreallymatters.net > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote: > > > > > for the pre-release version of watir (3.0.rc2) I get a no method > > error > > > > > > my code: > > > > > browser.screen_capture($file_path,true,false) > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote: > > > No, there shouldn't be any difference how the browser object is > > created since RAutomation doesn't depend on Watir at all and the > > dependency between Watir-RAutomation shouldn't play any role in here > > either... > > > Jarmo > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote: > > > so it's not working, because the latest version of rautomation having a > > > problem with how taza starts up the watir browser event. > > > def self.watir_ie(params) > > > require 'watir' > > > puts "running watir" > > > if params[:attach] > > > browser = Watir::IE.find(:title, //) > > > end > > > browser || Watir::IE.new > > > end > > > end > > > > I'm sure it's the latest version, because with the previous version of > > > rautomation and the pre release version of watir i didn't get a 'no such > > > file to load -- watir/ie' error. i can't change the code snippet because > > > for some reason taza tries to open firefox. > > > > Any reason why the latest version of rautomation would have a problem > > with > > > starting the browser with b = Watir::IE.new? > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman wrote: > > > > > Yes, since that method is deleted a long time ago already. Use > > > > Win32::Screenshot instead. > > > > > First, install Win32::Screenshot > > > > gem install win32screenshot > > > > > Then, take the screenshot by providing browser.rautomation as a > > > > parameter: > > > > Win32::Screenshot::Take.of(:rautomation, > > > > browser.rautomation).write("screenshot.png") > > > > > More examples athttps://github.com/jarmo/win32screenshot > > > > > Jarmo Pertman > > > > ----- > > > > IT does really matter -http://itreallymatters.net > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote: > > > > > for the pre-release version of watir (3.0.rc2) I get a no method > > error > > > > > > my code: > > > > > browser.screen_capture($file_path,true,false) > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote: > > > No, there shouldn't be any difference how the browser object is > > created since RAutomation doesn't depend on Watir at all and the > > dependency between Watir-RAutomation shouldn't play any role in here > > either... > > > Jarmo > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote: > > > so it's not working, because the latest version of rautomation having a > > > problem with how taza starts up the watir browser event. > > > def self.watir_ie(params) > > > require 'watir' > > > puts "running watir" > > > if params[:attach] > > > browser = Watir::IE.find(:title, //) > > > end > > > browser || Watir::IE.new > > > end > > > end > > > > I'm sure it's the latest version, because with the previous version of > > > rautomation and the pre release version of watir i didn't get a 'no such > > > file to load -- watir/ie' error. i can't change the code snippet because > > > for some reason taza tries to open firefox. > > > > Any reason why the latest version of rautomation would have a problem > > with > > > starting the browser with b = Watir::IE.new? > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman wrote: > > > > > Yes, since that method is deleted a long time ago already. Use > > > > Win32::Screenshot instead. > > > > > First, install Win32::Screenshot > > > > gem install win32screenshot > > > > > Then, take the screenshot by providing browser.rautomation as a > > > > parameter: > > > > Win32::Screenshot::Take.of(:rautomation, > > > > browser.rautomation).write("screenshot.png") > > > > > More examples athttps://github.com/jarmo/win32screenshot > > > > > Jarmo Pertman > > > > ----- > > > > IT does really matter -http://itreallymatters.net > > > > > On Feb 23, 2:30 am, hillary <[email protected]> wrote: > > > > > for the pre-release version of watir (3.0.rc2) I get a no method > > error > > > > > > my code: > > > > > browser.screen_capture($file_path,true,false) > On Tuesday, February 28, 2012 7:10:43 AM UTC-8, Jarmo Pertman wrote: > > > No, there shouldn't be any difference how the browser object is > > created since RAutomation doesn't depend on Watir at all and the > > dependency between Watir-RAutomation shouldn't play any role in here > > either... > > > Jarmo > > > On Feb 28, 2:42 am, hillary <[email protected]> wrote: > > > so it's not working, because the latest version of rautomation having a > > > problem with how taza starts up the watir browser event. > > > def self.watir_ie(params) > > > require 'watir' > > > puts "running watir" > > > if params[:attach] > > > browser = Watir::IE.find(:title, //) > > > end > > > browser || Watir::IE.new > > > end > > > end > > > > I'm sure it's the latest version, because with the previous version of > > > rautomation and the pre release version of watir i didn't get a 'no such > > > file to load -- watir/ie' error. i can't change the code snippet because > > > for some reason taza tries to open firefox. > > > > Any reason why the latest version of rautomation would have a problem > > with > > > starting the browser with b = Watir::IE.new? > > > > On Thursday, February 23, 2012 4:57:04 AM UTC-8, Jarmo Pertman wrote: > > > > > Yes, since that method is deleted a long time ago already. Use > > > > Win32::Screenshot instead. > > > > > First, install Win32::Screenshot > > > > gem install win32screenshot > > > > > Then, take the screenshot by providing browser.rautomation as a > > > > parameter: > > > > Win32::Screenshot::Take.of(:rautomation, > > ... > > read more » -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
