Re: [wtr-general] Re: Click text_field so Submit button displays

2011-11-02 Thread Joe Fleck
Hi Chuck, Thank you for the two suggestions. I do use the watir-webdriver on my MAC. I think I may have figure out the issue. When I run the script and the firefox browser is running the back the click to the text_field does not active the buttons to display. Although when I have the browser i

[wtr-general] Re: watir web-driver hwnd

2011-11-02 Thread Chuck van der Linden
On Nov 2, 3:12 pm, Jari Bakken wrote: > On Wed, Nov 2, 2011 at 10:07 PM, Chuck van der Linden wrote: > > > > >  Current FF also seems to no longer like this little trick, although > > you can find blog postings saying it works (but they are all from like > > 2008).  I just tried this in FF7 and ev

[wtr-general] Re: Click text_field so Submit button displays

2011-11-02 Thread Chuck van der Linden
On Nov 2, 1:50 pm, Joe Fleck wrote: > Hi Chuck, > > I have tried a wait and it works sometime and others times it doesn't. > > Actually the html I provide is just section within the list that has the > text field and button stuff.  I really don't need the > 'li(:id,'add-new-comment').' which I wil

Re: [wtr-general] Re: watir web-driver hwnd

2011-11-02 Thread Jari Bakken
On Wed, Nov 2, 2011 at 10:07 PM, Chuck van der Linden wrote: > > > Current FF also seems to no longer like this little trick, although > you can find blog postings saying it works (but they are all from like > 2008). I just tried this in FF7 and even with javascript enabled, and > things set to

Re: [wtr-general] require 'watir-webdiver' failing with 'can't activate ffi'

2011-11-02 Thread Jari Bakken
It's a problem when childprocess has a looser dependency on the ffi gem than selenium-webdriver. ffi 1.0.10 was released without proper Windows support at first, so I made the dependency stricter (= 1.0.9) for selenium-webdriver to avoid problems for Windows users, and forgot to make the same chang

[wtr-general] require 'watir-webdiver' failing with 'can't activate ffi'

2011-11-02 Thread Rick
Any idea what i am doing wrong? Overview.rb line 3 has - require "watir-webdriver". Thanks in advance $ ./Overview.rb /usr/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate ffi (= 1.0.9, runtime) for ["selenium-webdriver-2.10.0", "watir- webdriver-0.3.5"], already activated ffi-1.0.1

[wtr-general] Re: watir web-driver hwnd

2011-11-02 Thread Chuck van der Linden
As an alternative approach to this, have you considered perhaps just creating a few pages with Javascript code in them to set the browser size and location, and then having each window 'goto' the appropriate page? Or you can sometimes just inset the javascript as the URL. I've used this manually

Re: [wtr-general] Re: Click text_field so Submit button displays

2011-11-02 Thread Joe Fleck
Hi Chuck, I have tried a wait and it works sometime and others times it doesn't. Actually the html I provide is just section within the list that has the text field and button stuff. I really don't need the 'li(:id,'add-new-comment').' which I will be removing soon. I create a random string of

[wtr-general] Re: Click text_field so Submit button displays

2011-11-02 Thread Chuck van der Linden
On Nov 2, 10:42 am, Joe Fleck wrote: > Here is the Html: > > > > >  type="hidden" value="1" name="comments_presenter[all_comments_count]"> > name="comments_presenter[owner_ids]"> > Add > your comment... > style="height: 17px; overflow: hidden;"> > > Add your comment...  > > Are you sure

[wtr-general] Re: Click text_field so Submit button displays

2011-11-02 Thread Chuck van der Linden
Did you consider or try just adding a brief sleep after the click? it could be that things were just going too fast for the browser, and the current 'click on it like mad' solution is just working because it's working a bit like a small delay to allow the client side code to make the needed change

[wtr-general] Re: Can't locate unidentified text field for mouse over.

2011-11-02 Thread Chuck van der Linden
Seems like you posted this to Stack Overflow already. http://stackoverflow.com/questions/7970143/onmouse-over-with-an-anchor-on-watir-not-detecting To avoid duplication of effort, lets deal with answering it over there On Nov 2, 6:44 am, Matt wrote: > Hey everyone. > > I am trying to hover over

Re: [wtr-general] Click text_field so Submit button displays

2011-11-02 Thread Joe Fleck
I have come up with a temporary solution that has worked repeatedly. Code: #Click in the comment field multiple times. for do_it in 0..12 $browser.li (:id,'add-new-comment').text_field(:id,new_id).click end #Click in the comment

Re: [wtr-general] Click text_field so Submit button displays

2011-11-02 Thread Joe Fleck
Hi, I not sure that will work because its getting the buttons to display is the issue I am having. So if I am using that method would that wait for the buttons to be present and then set the textbox? $browser.li(:id,'add-new-comment').text_field(:id,new_id).when_present.set "Comment" $browser.i

Re: [wtr-general] Click text_field so Submit button displays

2011-11-02 Thread bis
can you just throw a click at the element and then wait for the element to be displayed something to the effect of click the comment field when_present.set the text for the comment. On Wed, Nov 2, 2011 at 10:42 AM, Joe Fleck wrote: > Here is the Html: > > > > > > name="comments_presenter[

Re: [wtr-general] Click text_field so Submit button displays

2011-11-02 Thread Joe Fleck
Here is the Html: Add your comment... Add your comment...  On Wed, Nov 2, 2011 at 12:56 PM, Željko Filipin < zeljko.fili...@wa-research.ch> wrote: > On Wed, Nov 2, 2011 at 5:52 PM, Joe Fl wrote: > > I can't figure out how to get this to work. > > Post link to the page. Or provide HTML

Re: [wtr-general] Click text_field so Submit button displays

2011-11-02 Thread Željko Filipin
On Wed, Nov 2, 2011 at 5:52 PM, Joe Fl wrote: > I can't figure out how to get this to work. Post link to the page. Or provide HTML that reproduces the problem. Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please read http://watir.co

[wtr-general] Click text_field so Submit button displays

2011-11-02 Thread Joe Fl
Hi All, In my script I need to add a comment to a discussion. In order to submit the comment I need to click the text_field first to get the event to fire to display the Submit button. I have add a click method for that text_field though it doesn't get the buttons to display. If I add a break r

[wtr-general] Awesome Page Objects

2011-11-02 Thread Jarmo
If anyone's interested then i've written a blog post about Awesome Page Objects - http://itreallymatters.net/post/12242886944/awesome-page-objects-in-testing Check it out and let me know in the comments or here what do you thing about the API and the solution itself. Jarmo Pertman - IT does r

[wtr-general] Can't locate unidentified text field for mouse over.

2011-11-02 Thread Matt
Hey everyone. I am trying to hover over some text, but I am struggling to detect the text to mouse over. I have tried links,style tags, anchors and text fields, but currently having no luck. Trying to hover over the text "Roll Over Menu"    Roll Over Menu Thanks again in advance! -- B