Re: [wtr-general] Watir and Frames
Hi I have attached the complete error i am getting, the code is simple ie=Watir::IE.attach(:title,//) a=ie.frames(:index,1).link(:text ,'ABC') puts a.to_s I get the error on Frame 'Access Denied' which i wrote earlier, and then the error 'couldnot locate the object' as since frame is not accessible, i cannot access the link. Have tried all options available on the watir help page for this but nothing worked... Regards, Pallavi On Mon, Mar 15, 2010 at 3:32 PM, Mrunal mrunal.gor...@gmail.com wrote: Hi Pallavi, Can u attach the code for which you r getting the error? Regards, Mrunal Pallavi Sharma wrote: Hi I have a frame issue with watir, where i get the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:52:in `method_missing': document (WIN32OLERuntimeError) OLE error code:80070005 in Unknown Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:52:in `document' Have tried every option available on: http://wiki.openqa.org/display/WTR/Frames but nothing is working. Can anyone here please help me with it. Regards Pallavi. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.comwatir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Watir and Frames
Hi Pallavi, Can see the link properties or that frame objects in IE Developer toolbar. If yes then put your site url in Trusted Sites. Then try your code. Reagrds, Mrunal Pallavi Sharma wrote: Hi I have attached the complete error i am getting, the code is simple ie=Watir::IE.attach(:title,//) a=ie.frames(:index,1).link(:text ,'ABC') puts a.to_s I get the error on Frame 'Access Denied' which i wrote earlier, and then the error 'couldnot locate the object' as since frame is not accessible, i cannot access the link. Have tried all options available on the watir help page for this but nothing worked... Regards, Pallavi On Mon, Mar 15, 2010 at 3:32 PM, Mrunal mrunal.gor...@gmail.com mailto:mrunal.gor...@gmail.com wrote: Hi Pallavi, Can u attach the code for which you r getting the error? Regards, Mrunal Pallavi Sharma wrote: Hi I have a frame issue with watir, where i get the following error: c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:52:in `method_missing': document (WIN32OLERuntimeError) OLE error code:80070005 in Unknown Access is denied. HRESULT error code:0x80020009 Exception occurred. from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/frame.rb:52:in `document' Have tried every option available on: http://wiki.openqa.org/display/WTR/Frames but nothing is working. Can anyone here please help me with it. Regards Pallavi. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com mailto:watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com mailto:watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com mailto:watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com mailto:watir-general%2bunsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
Re: [wtr-general] Packaging up an browser with a script?
On Mon, Mar 15, 2010 at 10:26 PM, dchuk darrindemc...@gmail.com wrote: But now I'm at a point where I'd like to be able to script out a tool or test, then switch it to an internal browser solution that can be packaged up and distributed to any machine and run on it's own, irrelevant of the system it's on. You should post this to wtr-development ( http://rubyforge.org/mailman/listinfo/wtr-development). I think a lot of Watir developers are not monitoring this group. Željko -- watir.com - community manager pledgie.com/campaigns/2982 - donate to Watir watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: Drop down menu
Hi I did fire a javascript event that will set the focus in the drop down list: $b.table(:index, 1)[2][6].fire_event(onmousedown) When the above line is executed it does not display the drop but it is focused. When I do either of the following: $b.select_list(:index, 2).select(Test) $b.select_list(:index, 2).set(Test) It does not select the link. I have to somehow click on the drop down arrow again in order to populate the drop down list. This is the same behavior when selecting a value in the drop down list manually. Thanks On Mar 15, 5:29 pm, Tiffany Fodor tcfo...@comcast.net wrote: Hi! You have a typo in your select statement: $b.select_list(:index, 2).select_list(Test) should be: $b.select_list(:index, 2).select(Test) (although, I think $b.select_list(:index, 2).set(Test) should work as well) Have you tried firing your javascript to put focus on the field just before attempting the select statement? Hope this helps! -Tiffany On Mar 15, 2:43 pm, tester86 sagar.am...@gmail.com wrote: I need to click on a drop down. I have a script that will set the focus in the drop down list then when I go to select the value it does not select the list. Manually: When I click in the drop down field it gets activated then when I click on the drop down arrow it will display the list. Interaction: When I click in the cell it sets the focus, then I have to click on the drop down arrow in order to see the list of options. If I do: $b.table(:index, 1)[2][6].fire_event(onmousedown) The above will set the focus in the field that contains the drop down. Manually I have click on the drop down in order to see the list If I do: $b.select_list(:index, 2).select_list(Test) It does not click on Test. Is there any way I can click on the drop down in order to see the list.. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com
[wtr-general] Re: ruby.exe processes
Basically I have this method: @pid = Process.create( :app_name = 'ruby clicker.rb', :creation_flags = Process::DETACHED_PROCESS ).process_id at_exit{ Process.kill(9,@pid) } which I think creating this process, but somehow at_exit is not working. On Mar 15, 11:07 am, Shlomit Gazit shlomitpatr...@gmail.com wrote: Hello, Thank you. Where would you recommend to put this code? On Mar 15, 2:48 am, rakesh swain rocky.deb...@gmail.com wrote: Hi, Execute the following. The process can be identified and terminated. require 'win32ole' require 'win32/process' wmi = WIN32OLE.connect(winmgmts://) processes = wmi.ExecQuery(select * from Win32_process) for process in processes do if process.Name.include? rubyw.exe then puts Name: #{process.Name} #~ puts Process ID: #{process.Pid} puts process.Terminate puts Finished Checking Processess and killing any process Leakage elsif process.Name.include? anyotherprocess.exe then #~ puts Name: #{process.Name} #~ puts Process ID: #{process.Pid} #~ puts process.Terminate end -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com