[wtr-general] Re: no such file to load -- firewatir

2009-05-19 Thread Alex Collins
Are you sure that the gem is installed correctly? Can you check that firewatir is listed when you run gem list. If firewatir is not shown, you may have installed it as a particular user and not system-wide. Try sudo gem install firewatir to fix this. Alex On 18 May 2009, at 20:25, Josh

回复: [wtr-general] Re: How to work with popups?

2009-05-19 Thread lianglina_2003
--~--~-~--~~~---~--~~ 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:

[wtr-general] How to simulate right mouse action

2009-05-19 Thread Jungle_hunter
hello everyone Now I use Watir to create some automation test script. I have a problem with watir in testing my project. That is how to simulate right mouse action? can anyone help me or give me some idea? thank you --~--~-~--~~~---~--~~

[wtr-general] Re: How to simulate right mouse action

2009-05-19 Thread sHiVa
Hi Hunter, Please refer this below link for simulating right click on any of the browser element. http://wiki.openqa.org/display/WTR/Right+Click+an+Element Regards Siva Phaneendra Krapa Virtusa --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] Re: How to work with popups?

2009-05-19 Thread Carlc75
Hi, the method we use is a combination of Ruby and Autoit where we write the contents of the popup to stdout. Ruby script: # Creates a process that, after a given timeout, # kills an internet explorer message window and returns the result. # # The success of this class is dependent on the

[wtr-general] Re: html method on watir don't return the real html

2009-05-19 Thread Željko Filipin
On Mon, May 18, 2009 at 7:19 PM, TCBlues tcbl...@gmail.com wrote: Any idea how to get the real html content? I think Watir can show you html rendered in the browser, and obviously Internet Explorer does not show all tags and changes the case of some tags. If you want just the html, maybe Watir

[wtr-general] Re: Saving xml contents of a page shown on screen

2009-05-19 Thread Željko Filipin
On Tue, May 19, 2009 at 12:01 PM, Natasha Ranney itsn...@yahoo.co.uk wrote: I tried using text property of browser to save the text shown on page as xml file. It did save it. But it saved the '-' as well. I remember doing the same thing a long time ago, and being annoyed by `-` also. I am not

[wtr-general] Re: Saving xml contents of a page shown on screen

2009-05-19 Thread Natasha Ranney
Thanks Željko :) The href attribute worked fine. Regards, Natasha From: Željko Filipin zeljko.fili...@wa-research.ch To: watir-general@googlegroups.com Sent: Tuesday, 19 May, 2009 11:30:30 Subject: [wtr-general] Re: Saving xml contents of a page shown on

[wtr-general] Re: Help needed in automation using Watir

2009-05-19 Thread G
I've been using Watir to write tools for the ExtJS desktop environment. In this; every time anything is done, random IDs are generated, which makes it 'challenging'. Luckily, most similar elements (for instance form text entry fields) are the same. So I've designed a set of functions which

[wtr-general] Re: How to work with popups?

2009-05-19 Thread satish
I was able to click as long as I do not use click method to open popup. (I manually clicked on icon to open popup after that my popup funciton took care of clicking on Yes button. My problem is since we can only use click_no_wait button to work with popup clicking methods and click_no_wait does

[wtr-general] Any else having problem with click_no_wait method.?

2009-05-19 Thread satish
Hello guys, When I use click I am getting popup message. But when I use click_no_wait method I am not able to see the popup hence I am not able to go ahead and click on popup Yes button. Does any one has any suggestions why this click_no_wait does not work on my PC? (both home and office pc did

[wtr-general] Unable to locate element

2009-05-19 Thread Kamesh
In the application I am trying to click on the ‘New voice record’ link. While running the script I am getting error message in the sciTE editor. I am attaching the HTML code of the link. A class=OraLink id=test:newEvaluationsNewTransactionLink1 onclick=submitForm('userInboxForm',1,

[wtr-general] Re: Any else having problem with click_no_wait method.?

2009-05-19 Thread Darin Duphorn
I had that issue once,I ended up using a different button attribute. Try using index and see if you can get the click_no_wait to work using that. -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of satish Sent: Tuesday, May 19,

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Željko Filipin
On Tue, May 19, 2009 at 3:44 PM, Kamesh kameshg...@gmail.com wrote: ie.link(:href, /faces/faces/client/inbox/userInbox.jspx).click I think that Internet Explorer always sees absolute links (site.com/page), not relative links (/page). Any of these should work: ie.link(:href,

[wtr-general] Re: How to simulate right mouse action

2009-05-19 Thread Alan Baird
http://wiki.openqa.org/display/WTR/Right+Click+an+Element -Original Message- From: watir-general@googlegroups.com [mailto:watir-gene...@googlegroups.com] On Behalf Of Jungle_hunter Sent: Tuesday, May 19, 2009 3:44 AM To: Watir General Subject: [wtr-general] How to simulate right mouse

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Kamesh G
Hi , I have tried with all the three options. Still i am getting same error message Thanks, Kamesh On Tue, May 19, 2009 at 7:37 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, May 19, 2009 at 3:44 PM, Kamesh kameshg...@gmail.com wrote: ie.link(:href,

[wtr-general] Re: Help! Ext treegrid unable to select row

2009-05-19 Thread G
I'm working with ExtJS Desktop interface here. Not sure if it's the same, but on their 'grid' elements, I'm using .fireevent(onmousedown) - but it did take some time to find the right bit. I think the code you've put up is ext specific code? I tend to do a browser.html for the 'useful' DOM, then

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Željko Filipin
ie.link(:href, /userInbox.jspx/).click Well, this one works for me. Try this: b.link(:href, /userInbox/).click What versions of Ruby and Watir are you using? (This is what my machine says.) C:\Documents and Settings\Administrator\Desktop\trunkruby -v ruby 1.8.6 (2007-09-24 patchlevel 111)

[wtr-general] Re: How to simulate right mouse action

2009-05-19 Thread Michael Hwee
You should search the group first. There is a good info and sample codes for that. - Original Message From: Jungle_hunter junglehuanggangzh...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Tuesday, May 19, 2009 1:43:37 AM Subject: [wtr-general] How to simulate

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Michael Hwee
check to see the object is in a frame. From: Kamesh G kameshg...@gmail.com To: watir-general@googlegroups.com Sent: Tuesday, May 19, 2009 7:45:17 AM Subject: [wtr-general] Re: Unable to locate element Hi , I have tried with all the three options. Still i am

[wtr-general] Re: Any else having problem with click_no_wait method.?

2009-05-19 Thread satish
Index also does not work. Here is code. I tried incrementing index. But it takes only index 1. It is not taking any other values. = require 'watir' require 'watir/ie' require 'win32ole' require

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Jim Matthews
Kamesh, The other major cause of this problem is that your test is not where you think it is. That is, there is an error in your previous step that causes a problem so that the next thing you are looking for is not actually there. (Like the previous step is supposed to do something to take you

[wtr-general] Re: click_no_wait can not make the popup come out

2009-05-19 Thread satish
Just for FYI to all. click_no_wait works with 1.8.6-26 Final Release. Its not working in 1.8.6-27 Thanks Satish On Apr 17, 8:02 am, bwaybandit lenridge...@gmail.com wrote: nothing to be embarassed about. just need to get it working :-) ok so in IE, when i use click_no_wait, check out the

[wtr-general] Re: Any else having problem with click_no_wait method.?

2009-05-19 Thread satish
Hey, I just now installed 1.8.6-26 Final Release. click_no_wait worked like charm with this version. click_no_wait does not work with 1.8.6-27 I waster one week on this.. :) Thanks Satish. On May 19, 12:10 pm, satish spanchumar...@gmail.com wrote: Index also does not work. Here is code. I

[wtr-general] Re: How to work with popups?

2009-05-19 Thread satish
Hey, I just now installed 1.8.6-26 Final Release. click_no_wait worked like charm with this version. click_no_wait does not work with 1.8.6-27 I wasted one week on this issue. :)) Thanks Satish. On May 19, 9:53 am, satish spanchumar...@gmail.com wrote: I was able to click as long as I do

[wtr-general] Re: - CLICK_NO_WAIT does not show the popup needed any thoughts on that?

2009-05-19 Thread satish
Hey, I just now installed 1.8.6-26 Final Release. click_no_wait worked like charm with this version. click_no_wait does not work with 1.8.6-27 I wasted one week on this.. :) Thanks Satish. On May 18, 4:18 pm, satish spanchumar...@gmail.com wrote: Hello guys, Our guys are using DevEx

[wtr-general] Re: Unable to locate element

2009-05-19 Thread James
It looks to me like you forgot the #. The html is:href=/faces/faces/client/inbox/userInbox.jspx# and your code is ie.link(:href, /faces/faces/client/inbox/ userInbox.jspx).click You missed the # at the end of the link. if you're not sure whether the # will be there, use reg ex to just look for

[wtr-general] using autoitx to change IE setting and then switching back to watir control results in error

2009-05-19 Thread aleister
i have written the following method (i know, i am a crude, vile, wretch of a programmer) to use autoitx to change the IE proxy setting basically it keys it's way through the menu's to the proxy setting field and changes the port number (shortcuts are for the dutch version of internet explorer)

[wtr-general] Re: using autoitx to change IE setting and then switching back to watir control results in error

2009-05-19 Thread Paul Rogers
you can do this in the registry, but you have to restart IE require 'win32/registry' PROXY_SERVER_IP = 192.168.1.20 PROXY_SERVER_PORT = 3128 def set_browser_to_use_proxy log Enabling Proxy at #{PROXY_SERVER_IP}:#{PROXY_SERVER_PORT}

[wtr-general] Re: Unable to locate element

2009-05-19 Thread sHiVa
Hi Kamesh, Use this code to click on the New Voice Record link: #--- ie.link(:innerText,/New Voice Record/).click #--- Regards Siva Phaneednra

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Kamesh G
Hi Siva, I tried with below scenario. In this case my previous statement getting failed. EX: My script having follwoing statements. once i have included 4th script i am getting be ie.select_list(:id, selectOneChoice1).set(Evaluate) ie.select_list(:id, selectOneChoice1).click ie.link(:text,

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Kamesh G
Hi James, I tried with the script having #. Still getting same error. c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/element.rb:52:in `assert_exists': Unable to locate element, using :href, /inbox/userInbox.jspx# (Watir::Exception::UnknownObjectException) from

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Kamesh G
Hi Jim, My previous step is executing perfectly. ie.link(:text, Evaluations).click after the above script, i am checking with verification using below command ie.link(:text, New Voice Record).exists? above script is executed successfully. after this i am using the below script ie.link(:href,

[wtr-general] Re: Unable to locate element

2009-05-19 Thread Kamesh G
Hi Michael, All the objects are available Inside Table. Table is under Form. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML Strict//ENMETA http-equiv=Content-Type content=text/html; charset=windows-1252 HTML lang=en dir=ltr BODY FORM class=ks_panelInclude onkeypress=return