Re: [wtr-general] Re: Reg: selectbox

2010-01-04 Thread Rinku Dev
I was able to automate simple conversion as said by u tiffany. but my main concern is how to keep one value fixed from one selectbox(say from the 'From' select box e..g. USD) and I would like to get the converted currency value of 1 USD to others I hope this will clear all of urs idea. and de

[wtr-general] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread tester86
Hi >From my research as far as I understand you can not drive watir scripts at the same time in the browser unless you create seperate scripts for them. I have a Test::Unit script that runs in Firefox but when I specify IE it just opens a new browser and nothing happens. I am guess that I would ha

[wtr-general] Re: Reg: selectbox

2010-01-04 Thread Tiffany Fodor
If you want to keep one of the values fixed, just set it as I showed and then iterate through the list with one of the loops rather than both of them. You can get the text from the table where the results are displayed: result_table = ie.table(:class, 'XEtbl_sub') from_text = result_table[3][1].

[wtr-general] Running watir tests from command line and from hudson

2010-01-04 Thread Shlomit Gazit
I am able to run watir test from command line but when I am trying to run watir from hudson I am getting: 1) Error: test_imperative(TC_c2p_all): WIN32OLERuntimeError: failed to create WIN32OLE object from `InternetExplorer.Application' HRESULT error code:0x80004002 No such interface

[wtr-general] Re: Running watir tests from command line and from hudson

2010-01-04 Thread Shlomit Gazit
I forgot to mention that I am creating a batch commend on Hudson when getting the error above. I was also trying to invoke rake file. I have rake and ruby plugin pointing to ruby directory on the windows but I got an error: FATAL: bin\rake.bat doesn't exist Although looking at ruby/bin directo

[wtr-general] Inputting text into a search field that has no input button

2010-01-04 Thread xguarder
I am trying to enter text into a search field (textField box). However, there is no button to click on to submit the text. You need to hit enter after typing it into the text box. Any ideas on how I can send the ENTER command directly to the textbox itself? I tried using the send_keys method, but i

[wtr-general] Re: Inputting text into a search field that has no input button

2010-01-04 Thread Tiffany Fodor
Hi! Check your text field to see if there is a javascript event associated with it. If there is, you can fire it with: ie.text_field(:name, 'my_field').fire_event('my_js_event') Hope this helps! -Tiffany On Jan 4, 1:46 pm, xguarder wrote: > I am trying to enter text into a search field (tex

Re: [wtr-general] Re: Inputting text into a search field that has no input button

2010-01-04 Thread Ethan
Hitting enter generally just submits the form associated with the field. You can get a handle to the form with the usual watir methods, and call the #submit method on the form. On Mon, Jan 4, 2010 at 16:21, Tiffany Fodor wrote: > Hi! > > Check your text field to see if there is a javascript even

[wtr-general] Re: Inputting text into a search field that has no input button

2010-01-04 Thread xguarder
Thanks, it looks like it is indeed a JS event. However, none of the fire_events I have tried seems to be working. Is there a JS event name that is associated with just sending an "Enter" command to it? Thanks again! On Jan 4, 4:21 pm, Tiffany Fodor wrote: > Hi! > > Check your text field to see i

[wtr-general] Re: Running watir tests from command line and from hudson

2010-01-04 Thread Shlomit Gazit
Please advice.!! On Jan 4, 9:20 am, Shlomit Gazit wrote: >  I forgot to mention that I am creating a batch commend on Hudson when > getting the error  above. > > I was also trying to invoke rake file. I have rake and ruby plugin > pointing to ruby directory on the windows but I got an error: > >

Re: [wtr-general] Re: Running watir tests from command line and from hudson

2010-01-04 Thread Charley Baker
I don't know hudson at all, but there are some here on the list who do use it. We use CruiseControl with a lot plugins and scripts that would be massive overkill and are fairly complex. That being said, the basic intent for our Watir scripts is to run rake.bat with an actual rake file from a worki

Re: [wtr-general] Driving Watir scripts in IE and Firefox at the same time

2010-01-04 Thread Wesley Chen
First, I think there is something wrong in your script. 1. You use ie for both ie browser and FF browser; 2. Your Firefox invoke way is not right. I think it works if you use: *require 'watir' ie = Watir::IE.new ie.goto("www.google.com") ff = FireWatir::Firefox.new ff.goto("www.google.com")* Than

Re: [wtr-general] Re: Inputting text into a search field that has no input button

2010-01-04 Thread Wesley Chen
$ie.send_keys("{ENTER}") Thanks. Wesley Chen. For life, the easier, the better. On Tue, Jan 5, 2010 at 6:22 AM, xguarder wrote: > Thanks, it looks like it is indeed a JS event. However, none of the > fire_events I have tried seems to be working. Is there a JS event name > that is associated w

Re: [wtr-general] Re: Fwd: Regarding Getting Page Text in Watir and FireWatir

2010-01-04 Thread Angrez Singh
The difference you see in HTML is because Watir returns outerHTML for an element and FireWatir returns innerHTML for element. Can you log a bug in JIRA so that we can track this in next release? - Angrez On Mon, Jan 4, 2010 at 3:44 PM, Pallavi Sharma wrote: > Hi Angrez > > As we were trying at o