I have a select field, that acts both as auto-complete and select box, i'm
not able to set value in that field using watir script. The HTML code for
that select field is below,
input class=dojoComboBox type=text
dojoattachpoint=textInputNode dojoattachevent=key:_handleKeyEvents;
keyUp: onKeyUp;
Hi
I tried with all those methods it does nothing.My script stops without
any error
On Apr 27, 10:30 am, Vishal bvkon...@gmail.com wrote:
Try
ie.table.fire_event(onmousedown)
ie.table.fire_event(onmouseup)
ie.table.fire_event(onclick)
On Apr 27, 10:19 am, Shweta nagman...@gmail.com
Thanks for the suggestion.
unfortunately it dont work :-(
contents = ff.form(:index, 1).select_list(:index, 1).getAllObjects
returns a empty string.
On 26 Apr., 00:21, George george.sand...@gmail.com wrote:
Hi there,
If you're looking to get all the options in a select list and put it
Ah
getAllContents
Thanks!!
works.
On 27 Apr., 10:11, jason jason.franklin.sto...@gmail.com wrote:
Thanks for the suggestion.
unfortunately it dont work :-(
contents = ff.form(:index, 1).select_list(:index, 1).getAllObjects
returns a empty string.
On 26 Apr., 00:21, George
The following method maybe help you.
*eval * eval( *aString* *[*, *aBinding* *[* *file* *[* *line* *]* *]* *]*)
- *anObject*
Evaluates the Ruby expression(s) in *aString*. If *aBinding* is given, the
evaluation is performed in its context. The binding may be a Binding object
or a Proc object. If
Found a work around for this,
Since there is a downarrow image that fires an event, that needs to be
triggered. so my code goes like this:
browser2.text_field(:class,dojoComboBox).focus()
browser2.text_field(:class,dojoComboBox).set T
browser2.text_field(:class,dojoComboBox).fire_event('onkeyup')
Thanks for tip i got the result.
I just created a new user under windows and i qorks - strange so now i am
using another user and the script works.
But now i have the problem using the login button ( go button)
i try as src:
# the Watir controller
require watir
# set a variable
test_site =
Hi All,
I am using Excel Data Driven Harness with Database Verifications as
framework in my project.
http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Database+Verifications
There is one xsl sheet (transform-results.xsl)to convert xml report to
HTML report. I don't like that
I need to check all the ads/images present on the webpage.They all are
coming from different locations,need to verify ,all images are loading
fine,no 404/302 error, also need to check the magic no is coming
correctly for that image.
you can use http://fanhouse.com as a input url.
Thanks,
Hi,
Has anyone managed to set the browser through Rake?
rake
require 'cucumber/rake/task'
require 'watir'
Cucumber::Rake::Task.new(default, features) do |t|
t.cucumber_opts = -f TeamCityFormatter -f html --out story-results.html
end
task :ff do
ENV['ENVIRONMENT']='systest'
found myself via the Watir WebRecorder out the the right line is:
ie.frame(:index, 53).image(:index, 4).click
- so okay with
ie.show_frames { |t| puts t.to_s }
i can identify the frame 53 but how i can see the image index?
On 27 Apr., 12:35, Alexander Fedtke alexander.fed...@googlemail.com
Hi,
Could anyone post a new watir plugin update site for eclipse 3.4
ganymade. Thanks for advance,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General group.
To post to this group, send email to
If it's not already included, try this:
http://download.eclipse.org/technology/dltk/downloads/
Stable release.
Charley Baker
blog: http://blog.charleybaker.org/
Lead Developer, Watir, http://wtr.rubyforge.org
QA Architect, Gap Inc Direct
On Mon, Apr 27, 2009 at 8:26 AM, JP
Hi Lokesh!
You can use any stylesheet you like to transform the xml to html, it
just has to be referenced in the xml you're transforming. I haven't
done a lot of work with xsl, just enough to write the stylesheet
included with the framework. I learned what I know here:
you wont be ble to do this with watir at the moment. THe reason is that
right now watir doesnt support all the event info on a key press ( most of
the time watir works fine)
There is some stuff on the wiki that begins to address this -
Does anyone know what that means/can post a step by step guide for
it? Or is there a better way to run multiple instances?
Use Selenium-RC? :-)
Seriously though, this would be a great feature to have. The problem
is that Firefox depends on a profile. Selenium is smart enough to
start
Bret has mentioned on any number of occasions that one of the hardest
things for a new user of Watir to grasp is how to go about building a
test framework or a test harness.
I wrote a simple, but useful, test harness in about 50 lines of code,
that demonstrates a few important principles of a
Thanks alot Wilson. Code is working. I would be very greateful to
you.
Regards
Siva
On Apr 27, 1:26 pm, Wilson Xu xu.xiaodong.wil...@gmail.com wrote:
The following method maybe help you.
*eval * eval( *aString* *[*, *aBinding* *[* *file* *[* *line* *]* *]* *]*)
- *anObject*
Evaluates the
Oops, my bad...sorry about that! Glad it worked out for you though...
On Apr 27, 1:20 am, jason jason.franklin.sto...@gmail.com wrote:
Ah
getAllContents
Thanks!!
works.
On 27 Apr., 10:11, jason jason.franklin.sto...@gmail.com wrote:
Thanks for the suggestion.
unfortunately it
Alex,
It's not that I don't want the code to run, at all, but only if it
successfully binds/attaches to the browser.
My issue is that it's rescueing the error, but not halting after the
rescue; it continues to the next line of code.
If I know it's going to fail, and I want the code to
Just to make sure I understand, let's lay out a basic rescue.
-- code --
begin
assertion
actions if assertion passes
rescue
actions if assertion failed
end #rescue block
-- unrelated actions/functions here --
It sounds like you want the rescue to force the program to end safely
rather
You hit the nail on the head, thanks, Adam!
I tried using 'break', but the ruby syntax didn't like seeing the
'break' before 'end'.
Thanks!
On Apr 27, 2:39 pm, AR reed.a...@gmail.com wrote:
Just to make sure I understand, let's lay out a basic rescue.
-- code --
begin
assertion
Runnin SafariWatir, OS X 10.5.6, Safari 4.0 (beta), and the latest
safariwatir (et al) gems.
This method:
Watir::Browser.default = 'safari'
b = Watir::Browser.new
b.goto http://my_site.com;
b.select_list(:id, state).options
returns:
NoMethodError: undefined method `options' for
That maybe a frame, but I think it is not housed well enough.
Thanks.
Wesley Chen.
On Tue, Apr 28, 2009 at 12:33 AM, Chris christopher.mcma...@gmail.comwrote:
ate it if you let me know.
--~--~-~--~~~---~--~~
You received this message because you are
Ooo, a spammer! Does this mean we're a legitimate mailing list now?
On Apr 27, 11:01 am, simson sonatch sonatch.sim...@gmail.com wrote:
3 Tips For Safer Online Datinghttp://secret-dating.we.bs/dating-tips016.html
Guide For Online Datinghttp://secret-dating.we.bs/dating-tips017.html
Finding
Hi Yogesh,
Try reading: http://wiki.openqa.org/display/WTR/Support
On Mon, Apr 27, 2009 at 05:52:52AM -0700, yogesh wrote:
I need to check all the ads/images present on the webpage.They all are
coming from different locations,need to verify ,all images are loading
fine,no 404/302 error,
yeah..i read that...sorry for the little information..
I need to check all the advertisement/images present on the page.Do we
have anything ,any method in watir/ruby by which i can verify this.
For image loading,we have image.hasloaded?..
On Apr 28, 7:19 am, Anna Gabutero a...@lavabit.com
are the ads:
images
flash
in a div
in an iframe
?
kind of difficult to help you with this one.
Paul
On Mon, Apr 27, 2009 at 8:35 PM, yogesh er.yogeshkhandel...@gmail.comwrote:
yeah..i read that...sorry for the little information..
I need to check all the advertisement/images
instead of options, try getAllContents
On Apr 27, 3:17 pm, Karl threadh...@gmail.com wrote:
Runnin SafariWatir, OS X 10.5.6, Safari 4.0 (beta), and the latest
safariwatir (et al) gems.
This method:
Watir::Browser.default = 'safari'
b = Watir::Browser.new
b.goto http://my_site.com;
yeah...ads are in iframe...flash is having embed id..don't know how to deal
with that..i installed flash-watir also but not able to get the expected
result
On Tue, Apr 28, 2009 at 8:28 AM, Paul Rogers paul.rog...@shaw.ca wrote:
are the ads:
images
flash
in a div
in an iframe
?
so what are you trying to test? The ads show up? the ads function correctly?
The impression count gets incremented correctly?
If you only want to see if the ad shows up, just check the iframe has some
valid html
If you want to see if the ad functions correctly, maybe loading it into its
own page
yeah i tried with valid html but i think watir1.6.2 is not supporting
iframe.html method,i want to check the magic no of the ads and if we click
on the ad,it should take as to right page..
[If you want to see if the ad functions correctly, maybe loading it into
its own page outside of the iframe
if the iframes are in different domains you will struggle to access the
contents of the iframe. Its a secrity thing in the browser.
Can you get the main page with net/http and then parse that for the urls of
the iframes and then open these individually in watir?
Paul
On Mon, Apr 27, 2009 at 9:46
how do i get the url of the iframe? if you can tell me how we can get the
url than i can parse it using net/htpp.
Also for flash,.click() method doesnot work.
Thanks,
Yogesh
On Tue, Apr 28, 2009 at 9:29 AM, Paul Rogers paul.rog...@shaw.ca wrote:
if the iframes are in different domains you
okie..i'll try.
Do we still have ie.frame.html method with watir1.6.2 or it's removed?
Thanks for your help
Thanks,
Yogesh
On Tue, Apr 28, 2009 at 9:44 AM, Paul Rogers paul.rog...@shaw.ca wrote:
you'll have to get the top level url using net/http and parse that. I dont
think you'll do it
i don't have object tag in my flash,i've embed that like
embed height=84 align=L width=287 pluginspage=http://
www.macromedia.com/go/getflashplayer version=9,0,0,0
flashvars=refreshFrames=adFrameamp;configUrl=http%3A//
xml.channel.aol.com/xmlrepository/fetch.adp%3Fid%3D450664
wmode=opaque
Sorry, that doesn't work either. Same error message.
On Apr 27, 8:02 pm, George george.sand...@gmail.com wrote:
instead of options, try getAllContents
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Watir General
Just an update -
I didn't end up working from home today, so didn't get a chance to
test those things out. However, I had to re-install / setup everything
on a different computer (again) at the new office and it's all working
perfectly!
Once I try out faejon's suggestions, if they don't work, I
Hey, guys,
How to use the select list methods on page:
http://wtr.rubyforge.org/rdoc/classes/Watir/SelectList.html
Any limitations to use the great methods?
Thanks.
Wesley Chen.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
39 matches
Mail list logo