ing was ok.
Is there something I am doing wrong, or Firewatir does not support
clicking on "auto-closing" buttons?
Thanks,
Alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
try running 'rake ie --trace' and 'rake ff --trace' to see what order
the tasks are executed in?
On Apr 27, 2009, at 6:23 AM, aidy lewis wrote:
>
> Hi,
>
> Has anyone managed to set the browser through Rake?
>
>
>
> require 'cucumber/rake/task'
> require 'watir'
>
>
> Cucumber::Rake::Task.new(
7; line closes the begin block.
To stop the program / script running, call the 'exit' method.
Alternatively, if you want to build in behaviour around the lack of a
browser, you could always use an if-block:
if browser
# do stuff when you have a browser
else
# do stuff when you h
could you post the output of 'uname -a', please?
Thank you,
Alex
On 23 Apr 2009, at 03:17, emz452 wrote:
>
> Hi there,
>
> I have recently started working from home and have just finished
> setting up my rails development environment. I'm running into a
> prob
manually specify UTF-8 encoding, the output is wrongly displayed.
Try manually specifying the encoding.
Alex
On 19 Apr 2009, at 04:03, Wesley Chen wrote:
> It doesn't work.
> I get the result as:
> row of CSV data
> 浣犲ソ鍚? 鎴戝緢濂?
>
> When I put the info out from th
", "of", "CSV", "data"]
csv << ["你好吗?", "我很好"]
end
Best wishes,
Alex
On 18 Apr 2009, at 04:07, Wesley Chen wrote:
> Do you know how to make it support the chinese character?
> When I have installed fastercsv and run the co
ting this into
element.rb's method_missing call.
> 2. SelectList#set needs to be defined as an alias for
> SelectList#select
> (as it is in IE-Watir).
I checked this morning - this is already fixed in the firewatir on
GitHub in Br
therefore need to amend your script so that you call:
ie.goto(thisLocation.to_s)
However, if you are looking to join file names to directory paths, I
suggest you look at Ruby's File and Dir classes. They have many useful
helpers, for example, File.join does exactly what we are doing above
ime being:
@browser.select_list(:id,"cAbb").select("software jobs")
However, if you wish to use the set method, add the following code to
your firewatir/htmlelements.rb file in the SelectList class beneath
the select method's definition:
alias :set :select
Best wishes,
Vikas,
Ruby probably isn't what you're looking for in that case.
Although I have previously seen some options for creating executables
from Ruby code. I don't have any links or information on them.
Alex
On 13 Mar 2009, at 04:05, Vikas Tulashyam wrote:
>
> Hi Tiffan
Interesting.
I found the options() method from the rdoc. However, I do not get the
behaviour I expect.
Use getAllContents() instead; this does return an array, as expected.
Alex
On 12 Feb 2009, at 19:15, Jason Shelton wrote:
> I tried the following code, and I am getting the undefi
compare the
two.
Alex
On 12 Feb 2009, at 17:29, Jason Shelton wrote:
> All,
>
> I am writing to ask if anyone has a quick way of verifying the
> contents of a drop down. I have a list of names, and I want to
> verify that each name is being displayed in the drop down. Thanks
&
Sorry - too early in the morning at the time.
CSV::Reader is what I meant.
If you google for CSV::Reader and Ruby you get what you are after.
Sorry about that.
Alex
On 12 Feb 2009, at 17:56, jtk wrote:
>
> Hi Alex,
>
> Thanks for replying. I Googled CSV::Loader and it came ba
else
...
ensure
...
end
Alex
On 12 Feb 2009, at 07:11, Prince3105 wrote:
>
> Hi This is Prince3105,
>
> Fairly newbie to watir, and i am using QTP for a long time, since a
> Vbscripter, i couldn't get all features of Ruby.
> In Vbscript we are using one statement "O
Do a quick search on Google for CSV::Loader - this will allow you to
load a csv easily. You can then substitute values into your query as
desired.
On 12 Feb 2009, at 00:53, jtk wrote:
>
> Hello,
>
> Can anyone help me pull data out of a csv file and insert it into a
> SQL query?
>
> I am tr
Several options, the simplest of which is to use the image method.
web_browser.image( :src, /plus.gif/ ).click
You may need to use xpath or multiple attributes to get the second or
third image.
Hope this helps.
Alex
On 10 Feb 2009, at 23:44, rollo wrote:
>
> Hello, Watir Folks.
Michael,
The scan method is part of the String class. If you look at the rdoc
for the classes you can find some very useful methods.
The pickaxe book and other ruby tutorials are also helpful.
Alex
On 10 Feb 2009, at 16:14, Michael Hwee wrote:
>
>
> Very cool, Jarmo.
> If yo
e, you are accessing a String object
(an instance of a Ruby class). That it is a string is indicated by the
double quotes.
You may be interested in looking at YAML. It is a markup form
available in Ruby which is typically used for what you are doing.
Hope this helps,
Alex
On 14 Jan 2009, at 01:
Margam,
This is all to do with the basics of Ruby. It would be well worth
working through some of the ruby tutorials.
In this case;
hash[]
On 14 Jan 2009, at 01:19, Margam wrote:
>
> Follow Up
> Hello All,
> After googling for some time, I found an easy way to get the data into
> an Hash.
lieve.
If the webmetrics recorder has not been updated to Watir 1.6 then the
line might read:
$ie = Watir::IE.new
If this is the case you will either need to downgrade Watir or modify
the script.
If you are still having difficulties, it would be helpful to see your
script code.
Alex
On 1
n the script, such that you
can consistently record the actions and means that you can watch the
browser doing the same thing, as John mentioned in his reply.
Alex
5 Jan 2009, at 07:12, Chuck vdL wrote:
>
> That's a great tip Alex, and yeah that will work for really simple
> stuf
e Google search
example?
Best wishes,
Alex
--~--~-~--~~~---~--~~
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, p
et the same analysis tools as you might with the
commercial products, but the tools are free.
Alex
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this grou
s.
- The // symbols are less easy to find, but they are a regular
expression or RegExp. Common across many languages and also available
in Java.
- The .text method returns the text contained within the span
Hope this helps,
Alex
On 3 Jan 2009, at 18:31, Bissquitt wrote:
>
> Regarding doc
Have you installed the developer tools? These are available on the OS
X install CD or you can download them from ADC.
Alex
On 19 Dec 2008, at 19:38, Margam wrote:
>
> Hello all,
> I am trying to install safarwatir on a Mac machine with OS X ver
> 10.5.5. But have been unsucces
es in later
screencasts.
Alex
On 8 Dec 2008, at 22:37, Pete Dignan <[EMAIL PROTECTED]> wrote:writes
>
> If you subscribe to this list, you probably know how to use Watir.
> The more people and companies that know and use Watir, the more
> valuable your Watir skills become. I h
A useful general principle if you are wondering if something will work
is to try it. In Ruby, start IRB (type irb at the command line) then
type your ruby code. Irb will show you the results after each line.
You do not need $ signs (ruby global variable) but you must certainly
quote your s
This is because in Excel you likely have the ellipsis character (...)
as a single character not three separate period chracters (.).
Ruby (and therefor Watir) doesn't support character sets / unicode as
one might expect. Therefore you receive the á character instead.
Try pasting the value in
Try putting bracket around the *args.
You could read the *args as being "any number of arguments to the
method".
On 1 Dec 2008, at 19:09, Chuck vdL <[EMAIL PROTECTED]> wrote:
>
> OK so I went and looked.. it's not javascript
>
> -=-=- snip-=-=
> class Radio < RadioCheckCommon
> def initiali
the correct ruby installs when installing gems etc.
Eg
Set PATH=c:\old-ruby\bin;%PATH%
Hope this helps.
Alex
On 11 Nov 2008, at 05:26, "pramod D" <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
> My application runs only on IE and uses lots of modal window for
> th
ce page of watir recognition methods is also very
useful in understanding how you can recognize the page controls you
wish to interact with. In this case, you can recognize the link using
the HTML id.
Hope this helps,
Alex
On 3 Nov 2008, at 23:12, "[EMAIL PROTECTED]" <[
As a cell is a container, you can use:
cell.image(:index, 1)
To access the first image within the cell. You should be able to use
any of the other recognition methods, as usual.
Hope this helps,
Alex
On 22 Oct 2008, at 22:33, niartseoj <[EMAIL PROTECTED]> wrote:
>
> Hello,
&g
101 - 132 of 132 matches
Mail list logo