Re: [wtr-general] Watir -- May just be a Cucumber item

2015-02-10 Thread Brian Ray
Yep. We use a Before hook to cache all scenario tags in an instance variable for, among other things, use in After hooks. This is the Ruby flavor of Cucumber, btw. Before do |scenario| @scenario_tags = scenario.source_tag_names ... But you can also "natively" have tag-specific After hooks.

[wtr-general] Re: How to set text in iFrame body?

2013-06-22 Thread Ray Oei
Ok, I think I solved it. I do a *browser.frame(:class => "iframe").click* before I do the send_keys. I don't know this is 'the best' solution, but it works. Is there a way to set text directly (no send_keys) in this case (with no defined text_field) in the body?

[wtr-general] How to set text in iFrame body?

2013-06-21 Thread Ray Oei
d_keys 'My text!'* nothing happens. It seems that the focus is not correct because when I select the text area this command works (using irb). I tried setting the focus but that doesn't help. Any idea what I am doing wrong? Thanks, Ray -- -- Before posting, please read http://w

[wtr-general] Re: Do you know how to make text box writable on the go.

2009-07-14 Thread Ray
work for me for now, but if there is another way to do it id be happy to find out. Ray On Jul 7, 11:03 pm, ashokmpm password wrote: >     Hi, > > Any bodyknowhow tomaketextboxwritable. > > Actually, i have atextboxwhich is read only.  However i need to insert values >

[wtr-general] IE addons off?

2009-07-09 Thread Ray
Is there anyway to start internet explorer with addons off using waitr? right now i manually start ie using command prompt and saying iexplore.exe -ext off. i would like to make this completely automated so that i can bring up a explorer box with no addons without manually typing it into the comma

[wtr-general] Wait for frame to load

2009-07-07 Thread Ray
so i could make it work for any frame at any amount of load time. Thanks Ray --~--~-~--~~~---~--~~ 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@google

[wtr-general] Re: Fwd: Exceute Java Script

2009-07-07 Thread Ray
The way that i exceute Java script is: browser.document.parentWindow.execScript(scriptToBeExceuted) This seems to work in internet explorer only, fire fox says browser does not have a property documnet. Hope this Helps Ray On Jul 6, 10:33 pm, Pallavi Sharma wrote: > Anyone out there

[wtr-general] Re: run a script from another with no return

2009-07-06 Thread Ray
{|x| x.join} > > marekj > > Watirloo: Semantic Page Objects in UseCaseshttp://github.com/marekj/watirloo/ > > On Mon, Jul 6, 2009 at 10:41 AM, Ray wrote: > > > Is there a way to make a call to a second ruby script and not wait for > > it to return? I need to do this

[wtr-general] run a script from another with no return

2009-07-06 Thread Ray
then i am open to any suggestions. Thanks in advanced Ray --~--~-~--~~~---~--~~ 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 posti

[wtr-general] Setting HTML Properties

2009-06-18 Thread Ray
Is there a way to set a property in html using watir? I have a table that is not visible and i need to set it visibility property to visible so that watir can click on it. Thanks in advance Ray --~--~-~--~~~---~--~~ You received this message because you are

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

2009-06-04 Thread Ray
Thanks, I was not able to get using it like a table to click either. Unfortunately i do not have complete access to the source code of the site so i am not able to look to determine exactly how it works. What i do know is that the html is built after the cell is clicked using java script. The odd

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

2009-06-03 Thread Ray
I am trying to click a cell in the table On Jun 3, 5:08 pm, George wrote: > Are you trying to click a particular row in the result table or a cell > containing a hyperlink? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

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

2009-06-03 Thread Ray
Hi Did you ever figure out the problem with this? I am having a similar problem. For me the click works in Fire Fox(using fire watir) but when i try the same thing in IE nothing happens and the script ends without errors. any help is appreciated Thanks --~--~-~--~~~

[wtr-general] Re: Error while running Watir

2009-03-04 Thread ray
I have tried like you said, seems not work.:( My OS is win2003_X64 server. Any one have occurred this? On 3月4日, 下午5时10分, amit wrote: > Hello, > > The problem which had occurred has been resolved. > > Thanks to all those posts regarding the same. > > What i had done is.. > > 1:Open the command pr