I got it through Rspec:
spec usingrspec.rb --format html > testresult.html
On Jan 15, 11:31 am, Jagdeep Jain wrote:
> I want to populate Watir results to HTML format. Is there any way to
> do this?
> Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~
I want to populate Watir results to HTML format. Is there any way to
do this?
Or is there any way to have all 'puts' goes to HTML file?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post
Amit,
This is the method that works for me:
***
require 'watir/ie'
require 'watir/WindowHelper'
require 'test/unit'
require 'win32ole'
require 'watir\contrib\enabled_popup'
# open a browser
$ie = Watir::IE.new
puts " Step
I also have met this problem, the reason is the ie browser status is not
"Done", that's why script is hanged up.
I have a workaround way to handle it, it is not the best way, but it can
work for me.After execute ie.goto $url, sleep several seconds your script,
after that, use MouseClick() api of au
Hi,
> In watir can we execute the tests continuously?
> even one test got failed other tests should be executed subsequently..
You probably shall try run your tests in a continuous build server
(like CruiseControl).
We followed
http://myorganized.info/public/zhimin/solution/154
setup (The in
Hi Alex,
Thank you very much for the explanation.
Margam
On Tue, Jan 13, 2009 at 11:39 PM, Alex Collins wrote:
>
> My apologies - knocked send whilst getting onto the train.
>
> In this case, you are using the CSV modules to load strings as key/
> value pairs into a hash. The important bit being
Turn off page caching?
Bissquitt wrote:
> I did find one answer a few pages back but they involved closing IE
>
> On Jan 13, 2:47 pm, Bissquitt wrote:
>
>> So im running a script that goes to MANY webpages and I noticed that
>> each web page it goes to it still stores the information so that
Is there any way through which i can handle the Authentication popups?
The Solution mentioned at the following link doesn't seem to work for
me: http://wiki.openqa.org/display/WTR/Basic+Authentication
Thanks in Advance.
Regards,
Amit
--~--~-~--~~~---~--~~
You rece
http://wiki.openqa.org/display/WTR/Running+Unit+Tests+in+Development
-c
On Wed, Jan 14, 2009 at 10:00 AM, Monkeybuns wrote:
>
> I'm trying to run the Unit Tests defined in the watir tutorial (http://
> wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests).
>
> I gather that this does not work a
I'm trying to run the Unit Tests defined in the watir tutorial (http://
wiki.openqa.org/display/WTR/Run+the+Watir+Unit+Tests).
I gather that this does not work anymore in 1.6.2 because the
directory structure has changed from 1.5.6.
Have others run into this? Are there any suggested workarounds
name_field_with_space = @browser.html.scan(/\sname\s*=\s*["\']\w+\s+
["\']/i)
assert(name_field_with_space.empty?, message="name tag field with
trailing space found")
This was the code I used to solve my problem. I used regex to get the
name='whatever '. The scan method will search within the
I find SpySmith useful for this sort of thing
http://agilethinking.net/qualityforge/spysmith/index.html
e.g. a link in my application is shown as:
Active Element: [A], Frame: [mainFrame/centralFrame], Index: [71]
Release Notes
Trevor
--~--~-~--~~~---~--~~
You
Here is a piece of code that represents the characters (╖Äïσ) properly
in IE.
require 'win32ole'
WIN32OLE.codepage = WIN32OLE::CP_UTF8
browser.text_field(:id, 'blah').value='my characters'
In Firefox, the characters in the text field are represented as: 记录阿里巴
巴
The above does not seem like a h
It works!! Thank you very much!
On Jan 13, 3:05 pm, "Bill Agee" wrote:
> Looks like the problem is this line:
>
> $text=WinGetText(window_title, "")
>
> In this situation, ruby doesn't know where to find the definition for
> the 'WinGetText' method. So it is probably attempting to invoke the
Hi Margam
You should really read the Ruby documentation on accessing array elements.
Nevertheless, here is how I would do it:
require 'csv'
array = []
CSV::Reader.parse(File.open('gmail.csv')) do |row|
array << row.join(',')
end
puts array[10].split(',')[1] # row 11 (column 2)
puts array[
Thanks very much. I study from you again, :)
Thanks.
Wesley Chen.
On Wed, Jan 14, 2009 at 11:59 AM, Richard Lawrence wrote:
>
> You don't get back the specific object type from element_by_xpath, so
> some methods don't work. But this works:
>
> b = Watir::IE.new
> b.goto 'http://www.google.com/'
Thanks a lot.
On 14 ene, 03:59, Richard Lawrence wrote:
> You don't get back the specific object type from element_by_xpath, so
> some methods don't work. But this works:
>
> b = Watir::IE.new
> b.goto 'http://www.google.com/'
> txt = b.element_by_xpath("//*...@name='q']")
> txt.value = 'Richard
17 matches
Mail list logo