[wtr-general] Select from auto-complete

2009-04-27 Thread Hemalatha Sivasubramaniam
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;

[wtr-general] Re: Unable to click an element in table/grid

2009-04-27 Thread Shweta
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

[wtr-general] Re: show form select_list objects text

2009-04-27 Thread jason
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

[wtr-general] Re: show form select_list objects text

2009-04-27 Thread jason
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

[wtr-general] Re: How to call a function fom Excel ?

2009-04-27 Thread Wilson Xu
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

[wtr-general] Re: how to select from a Dojo Select Widget

2009-04-27 Thread pallavi shashidhar
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')

[wtr-general] Re: problem with fill fields on a login page (maybe frame problem)

2009-04-27 Thread Alexander Fedtke
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 =

[wtr-general] Excel Data Driven Harness with Database Verifications

2009-04-27 Thread lokesh.agra...@gmail.com
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

[wtr-general] how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh
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,

[wtr-general] setting browser through rake

2009-04-27 Thread aidy lewis
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'

[wtr-general] Re: problem with fill fields on a login page (maybe frame problem)

2009-04-27 Thread deralex
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

[wtr-general] eclipse plugin update site for WATIR

2009-04-27 Thread JP
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

[wtr-general] Re: eclipse plugin update site for WATIR

2009-04-27 Thread Charley Baker
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

[wtr-general] Re: Excel Data Driven Harness with Database Verifications

2009-04-27 Thread Tiffany Fodor
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:

[wtr-general] Re: Select from auto-complete

2009-04-27 Thread Paul Rogers
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 -

[wtr-general] Re: Apply a patch to FireWatir and JSSH

2009-04-27 Thread Chris McMahon
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

[wtr-general] thinking about automation frameworks/harnesses

2009-04-27 Thread Chris
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

[wtr-general] Re: How to call a function fom Excel ?

2009-04-27 Thread sHiVa
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

[wtr-general] Re: show form select_list objects text

2009-04-27 Thread George
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

[wtr-general] Re: Rescue

2009-04-27 Thread «°¤§ømåtïçCðrp§ë¤°»
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

[wtr-general] Re: Rescue

2009-04-27 Thread AR
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

[wtr-general] Re: Rescue

2009-04-27 Thread «°¤§ømåtïçCðrp§ë¤°»
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  

[wtr-general] select_list().options valid?

2009-04-27 Thread Karl
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

[wtr-general] Re: thinking about automation frameworks/harnesses

2009-04-27 Thread Wesley Chen
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

[wtr-general] Re: Finding Someone Special With an Online Dating Service

2009-04-27 Thread George
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

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Anna Gabutero
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,

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh
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

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
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

[wtr-general] Re: select_list().options valid?

2009-04-27 Thread George
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;

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
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 ?

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
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

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
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

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread Paul Rogers
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

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
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

[wtr-general] Re: how do i check ads/images present on the web page and loading fine

2009-04-27 Thread yogesh khandelwal
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

[wtr-general] Re: about the flash watir example code

2009-04-27 Thread yogesh
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

[wtr-general] Re: select_list().options valid?

2009-04-27 Thread Karl
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

[wtr-general] Re: jssh error - Watir::Exception::UnableToStartJSShException

2009-04-27 Thread emz452
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

[wtr-general] How to use the Watir::SelectList methods?

2009-04-27 Thread Wesley Chen
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