[wtr-general] Re: problem in jssh
which XPI you are using and i think you want to say 3.10? On Mon, Jul 13, 2009 at 6:39 PM, venkatesh kumar venkatesh...@gmail.comwrote: firefox 3.01 Thanks Venkat www.prog2impress.com On Mon, Jul 13, 2009 at 12:15 PM, Angrez Singh ang...@gmail.com wrote: Which Firefox version are you using? Which XPI are you using? On Sat, Jul 11, 2009 at 11:49 PM, venky venkatesh...@gmail.com wrote: Hi all, I worked in fire watir for a month. my scripts were running fine. Due to some other reason i had to format my hard disk. I installed firewatir with jssh extension but now the same script is not running am getting a error like this c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:271:in `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:161:in `initialize' i have tried reinstalling firewatir and firefox browser along with jssh for few times but error still persists. What going wrong can any body throw some light on this? Thanks, Venky www.prog2impress.com --~--~-~--~~~---~--~~ 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: How to get firefox window handle
Hi Angrez, Where can i get documentation for the same. I don't know how to get title of the window using Win32API. Regards, Kiran Y On Fri, Jul 10, 2009 at 2:44 PM, Angrez Singh ang...@gmail.com wrote: Right now there is no support for hwnd in Firewatir. Can you use Win32API to get the handle of the window using the title? If yes, then you can use firefox title to get the handle. - Angrez On Fri, Jul 10, 2009 at 2:35 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi Angrez, Thanks for your reply. Following is the step which I want to perform. Want to click on the center point of the firefox window and want to do some copy paste operation. This is required as I can't set text in the frame as body of compose window in my project had used frame. In IE following is the piece of code I was using def getClientCenterPoint(browser) myRect= * 16# store four LONGs getClientRect=Win32API.new(user32, GetClientRect, ['I','P'], 'I') getClientRect = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L') getClientRect.call(browser.hwnd, myRect) x,y,xpos,ypos=myRect.unpack() setCursorPos = Win32API.new(user32, SetCursorPos, ['I','I'], 'I') setCursorPos.Call(xpos.to_i/2+90,ypos.to_i/2+150) end Please let me know if you want any other details. Regards, Kinnu On Fri, Jul 10, 2009 at 1:33 PM, Angrez Singh ang...@gmail.com wrote: can you explain what you are trying to do by getting the handle of window? may be we can suggest some workaround to do the same in Firewatir? - Angrez On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Any info on this friends? On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.comwrote: Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ 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: How to get firefox window handle
You can look into winhelper.rb file in watir framework. It uses win32api for lot of things. I haven't used win32api so will not be able to help you much with the code. Thanks, Angrez On Tue, Jul 14, 2009 at 1:16 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi Angrez, Where can i get documentation for the same. I don't know how to get title of the window using Win32API. Regards, Kiran Y On Fri, Jul 10, 2009 at 2:44 PM, Angrez Singh ang...@gmail.com wrote: Right now there is no support for hwnd in Firewatir. Can you use Win32API to get the handle of the window using the title? If yes, then you can use firefox title to get the handle. - Angrez On Fri, Jul 10, 2009 at 2:35 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Hi Angrez, Thanks for your reply. Following is the step which I want to perform. Want to click on the center point of the firefox window and want to do some copy paste operation. This is required as I can't set text in the frame as body of compose window in my project had used frame. In IE following is the piece of code I was using def getClientCenterPoint(browser) myRect= * 16# store four LONGs getClientRect=Win32API.new(user32, GetClientRect, ['I','P'], 'I') getClientRect = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L') getClientRect.call(browser.hwnd, myRect) x,y,xpos,ypos=myRect.unpack() setCursorPos = Win32API.new(user32, SetCursorPos, ['I','I'], 'I') setCursorPos.Call(xpos.to_i/2+90,ypos.to_i/2+150) end Please let me know if you want any other details. Regards, Kinnu On Fri, Jul 10, 2009 at 1:33 PM, Angrez Singh ang...@gmail.com wrote: can you explain what you are trying to do by getting the handle of window? may be we can suggest some workaround to do the same in Firewatir? - Angrez On Fri, Jul 10, 2009 at 1:03 PM, kiran yajamanyam kiranyajaman...@gmail.com wrote: Any info on this friends? On Fri, Jul 10, 2009 at 11:44 AM, Kinnu kiranyajaman...@gmail.comwrote: Hi Friends, I am using ie.hwnd in watir to get the browser handle. I have observed that there is no such property available in FireWatir. Is there any work around for this? basically what i want to do is to get the center point of the browser. Regards, Kinnu --~--~-~--~~~---~--~~ 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: problem in jssh
firefox version: 3.0.1 jssh: 0.9 thanks for your kind assistence Regards, Venkat www.prog2impress.com On Tue, Jul 14, 2009 at 12:14 PM, Angrez Singh ang...@gmail.com wrote: which XPI you are using and i think you want to say 3.10? On Mon, Jul 13, 2009 at 6:39 PM, venkatesh kumar venkatesh...@gmail.comwrote: firefox 3.01 Thanks Venkat www.prog2impress.com On Mon, Jul 13, 2009 at 12:15 PM, Angrez Singh ang...@gmail.com wrote: Which Firefox version are you using? Which XPI are you using? On Sat, Jul 11, 2009 at 11:49 PM, venky venkatesh...@gmail.com wrote: Hi all, I worked in fire watir for a month. my scripts were running fine. Due to some other reason i had to format my hard disk. I installed firewatir with jssh extension but now the same script is not running am getting a error like this c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:271:in `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:161:in `initialize' i have tried reinstalling firewatir and firefox browser along with jssh for few times but error still persists. What going wrong can any body throw some light on this? Thanks, Venky www.prog2impress.com --~--~-~--~~~---~--~~ 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: problem in jssh
Did you installed the XPI from here: http://wiki.openqa.org/display/WTR/FireWatir+Installation Also can you see if you have done all the steps correct, mostly people forget to install the Redistributed package for VS 2005 SP1. Can you just check that? Thanks, Angrez On Tue, Jul 14, 2009 at 6:23 PM, venkatesh kumar venkatesh...@gmail.comwrote: firefox version: 3.0.1 jssh: 0.9 thanks for your kind assistence Regards, Venkat www.prog2impress.com On Tue, Jul 14, 2009 at 12:14 PM, Angrez Singh ang...@gmail.com wrote: which XPI you are using and i think you want to say 3.10? On Mon, Jul 13, 2009 at 6:39 PM, venkatesh kumar venkatesh...@gmail.comwrote: firefox 3.01 Thanks Venkat www.prog2impress.com On Mon, Jul 13, 2009 at 12:15 PM, Angrez Singh ang...@gmail.com wrote: Which Firefox version are you using? Which XPI are you using? On Sat, Jul 11, 2009 at 11:49 PM, venky venkatesh...@gmail.com wrote: Hi all, I worked in fire watir for a month. my scripts were running fine. Due to some other reason i had to format my hard disk. I installed firewatir with jssh extension but now the same script is not running am getting a error like this c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:271:in `set_defaults': Unable to connect to machine : 127.0.0.1 on port 9997. Make sure that JSSh is properly installed and Firefox is running with '-jssh' option (Watir::Exception::UnableToStartJSShException) from c:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.2/lib/firewatir/ firefox.rb:161:in `initialize' i have tried reinstalling firewatir and firefox browser along with jssh for few times but error still persists. What going wrong can any body throw some light on this? Thanks, Venky www.prog2impress.com --~--~-~--~~~---~--~~ 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: Do you know how to make text box writable on the go.
I had to do this to input a date that is normally selected by a javascript calendar pop up. frame.text_field(:name, fieldName).document.readonly = frame.text_field(:name, fieldName).set(date) frame.text_field(:name, fieldName).document.readonly = read only this seems to work for me for now, but if there is another way to do it id be happy to find out. Ray On Jul 7, 11:03 pm, ashokmpm password bhavesh1_sha...@yahoo.com wrote: Hi, Any bodyknowhow tomaketextboxwritable. Actually, i have atextboxwhich is read only. However i need to insert values into it. I got somewhere like, we candotextboxwritableon the fly -- the code is -- $ie.Document.parentWindow.execScript(document.getElementById('CopyfSystem').readOnly = false;) $ie.text_field(:name, CopyfSystem).set(fsname) However this is not working? So what i missed or what else need to be done. If anybody knows, it is an great help thanks Bhavesh --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---