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
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
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].
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
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
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
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
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
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
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:
>
>
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
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
$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
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
14 matches
Mail list logo