[wtr-general] Re: Getting errro in Chrome. Please suggest answer.

2011-08-30 Thread Alister Scott
have you downloaded the chromdriver and put it on your path http://watirwebdriver.com/chrome/ -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general

Re: [wtr-general] Re: Getting errro in Chrome. Please suggest answer.

2011-08-30 Thread Amit Bobade
Thank you very much for your reply, Alister. I am using watir-webdriver, so still do I need to download Chrome driver? I think, watir -webdriver support Chrome, FF and IE. Thanks, On Tue, Aug 30, 2011 at 12:03 PM, Alister Scott alister.sc...@gmail.comwrote: have you downloaded the

[wtr-general] Re: how do I select li link with id from a jquery dynamic list

2011-08-30 Thread Jarmo
Yes, but why are you trying to click on a link inside of the button? Should't you just click on the button itself? And isn't it already present at this stage, e.g. shouldn't ie.button(:src, /btn_continue.png/).click just work? Jarmo On Tue, Aug 30, 2011 at 1:03 AM, M mo10soc...@gmail.com wrote:

Re: [wtr-general] Re: Getting errro in Chrome. Please suggest answer.

2011-08-30 Thread Yuping Zhong
Hi Amit, You need to download the chrome driver and put it on your PATH. On Tue, Aug 30, 2011 at 5:15 PM, Amit Bobade amit.sr...@gmail.com wrote: Thank you very much for your reply, Alister. I am using watir-webdriver, so still do I need to download Chrome driver? I think, watir -webdriver

Re: [wtr-general] Re: Getting errro in Chrome. Please suggest answer.

2011-08-30 Thread Amit Bobade
Okay..Thank you four great help Yuping and Alister. Thanks, -Amit On Tue, Aug 30, 2011 at 3:33 PM, Yuping Zhong littlezhong...@gmail.comwrote: Hi Amit, You need to download the chrome driver and put it on your PATH. On Tue, Aug 30, 2011 at 5:15 PM, Amit Bobade amit.sr...@gmail.com

[wtr-general] Waiting for a user response

2011-08-30 Thread byung
Is there a way to make Watir code to wait for user's click event?? I would like to run the Watir code.. and while it is running, wait till the user click a link on the web page.. If the user click a link on the page, and then the code go to next step... How would it be possible to do this??

[wtr-general] Re: way to check whether new page has been loaded..

2011-08-30 Thread George
This thread may answer your question: http://bit.ly/nW5Acu On Aug 29, 6:52 pm, byung jinuacad...@gmail.com wrote: is there a way to check whether a new page has been loaded in WATIR?? could anyone tell me a way to check new page load in WATIR?? thanks. -- Before posting, please read

[wtr-general] Re: way to check whether new page has been loaded..

2011-08-30 Thread byung
I made below code: require 'watir' ie = Watir::IE.start(www.testsite.com) file = File.open(c:/test.txt, a) while(ie.status != Done) do file.puts ie.url() end file.close and I got below error message: 'method_missing'; statusText WIN32OLERuntimeError On Aug 30, 10:22 am,

Re: [wtr-general] way to check whether new page has been loaded..

2011-08-30 Thread Rahul Sharma
How would you manually assert that the page has been loaded? If you are waiting for something on a loaded page, make an assertion on that element. What are your reasons to know that the page has been loaded? On 30 Aug 2011, at 18:37, byung wrote: I made below code: require 'watir' ie =

[wtr-general] Re: way to check whether new page has been loaded..

2011-08-30 Thread Super Kevy
Rahul makes good points I usually fingerprint my page looking for unique items using .include? and .exists? Looks like your trying to look for the dom page attribute readyState See http://www.w3schools.com/jsref/prop_doc_readystate.asp On Aug 30, 1:51 pm, Rahul Sharma rahulsharma@gmail.com

[wtr-general] meaning of

2011-08-30 Thread byung
I come across below code.. while(ie.status! = Done) do sleep(1) end Can anybody tell me what the meaning of .. - ie.status! = Done - means?? I do not understand

[wtr-general] Re: meaning of

2011-08-30 Thread orde
I do not understand what role ! mark does in the code.. != is the negated form of the == operator. Take a look at Table 7.1 : Common comparison operators on http://phrogz.net/programmingruby/tut_expressions.html#expressions. orde On Aug 30, 12:54 pm, byung jinuacad...@gmail.com wrote: I come

[wtr-general] Re: Waiting for a user response

2011-08-30 Thread Super Kevy
Not sure why you want manual stops but consider this: def method_messagebox(txt,title,buttons) On Aug 30, 11:54 am, byung jinuacad...@gmail.com wrote: Is there a way to make Watir code to wait for user's click event?? I would like to run the Watir code.. and while it is running, wait till

[wtr-general] Re: Waiting for a user response

2011-08-30 Thread Super Kevy
Ok... fat fingers so I continue Consider this: It will popup and OK msgbox require 'dl' def method_messagebox(txt,title,buttons) puts ' * method_messagebox' user32 = DL.dlopen('user32') msgbox = user32[ 'MessageBoxA', 'ILLSI' ] r, rs = msgbox.call(0,txt,title,buttons) return r end #

Re: [wtr-general] Waiting for a user response

2011-08-30 Thread Rahul Sharma
Would like to know why you would want to wait between steps in your automated tests as when they will run, who will click on these links when they run on a daily basis. I haven't tried this myself but give it a try to see what it does: wait_until{browser.button(:id = 'button').click} On 30

[wtr-general] Re: meaning of

2011-08-30 Thread Super Kevy
Its a typo in your context != means is not equal to, You see notation everywhere except maybe excel and legacy languages where its On Aug 30, 2:54 pm, byung jinuacad...@gmail.com wrote: I come across below code.. while(ie.status! = Done) do sleep(1) end Can anybody tell me

[wtr-general] How to get associated table column cell content

2011-08-30 Thread Super Kevy
I have a search table that returns 3 columns and N rows the colums contain a link, a city/state and a distance I know the link and can easily validate it using .include? and .exist? Is there a method, that could return table row the link is in so i can check the content of the associated columns

[wtr-general] Re: Waiting for a user response

2011-08-30 Thread Super Kevy
in the call statement the First value is an integer it should be Zero Second Value is a string Third Value is a string Fourth value is an integer in the sample its a Zero check your inputs On Aug 30, 3:51 pm, byung jinuacad...@gmail.com wrote: i get below error.. in 'call': can't convert

[wtr-general] Re: Waiting for a user response

2011-08-30 Thread byung
I put below code.. def method_messagebox(txt,title,buttons) puts ' * method_messagebox' user32 = DL.dlopen('user32') msgbox = user32[ 'MessageBoxA', 'ILLSI' ] r, rs = msgbox.call(0,txt,title,0) return r end response = method_messagebox('Script is waiting for user to click OK','Manual

[wtr-general] run watir with ruby 1.9.2

2011-08-30 Thread ottoman
Hi, I have installed watir and ruby 1.8.7 as suggested watir.com. I see some solutions implemented with latest ruby 1.9.2 and watir. is it possible to run watir with latest ruby? how? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

[wtr-general] Watir general question

2011-08-30 Thread bhuvanesh barani
This is a discussion on *Watir general question - RUBY* ; hi everyone it was really difficult to find a watir forum at all, so i hope i can find some help in here anyway. is there a way of veryfying that an IE spawned browser window exists? from what i ... For more details:

[wtr-general] questions from newbie

2011-08-30 Thread Duke
Hi folks, Please welcome the newest user of watir! I just heard about watir when searching for web automation, and after reading some how-to articles, I was quite excited with my first script running below (run fine in ubuntu x86, havent tried in mac or windows yet): CODE START

[wtr-general] Unable to locate element, using :jssh_name (Watir::Exception: :UnknownObjectException)

2011-08-30 Thread Hari
I'm trying to retrieve the text from within the aanchor tags from the html shown below. i'm running firewatir on Windows Xp and have the jssh plugin installed. a onblur=webFXTreeHandler.blur(this); onfocus=webFXTreeHandler.focus(this); id=cwc_menu_local:ROOT.Find a Request-anchor onclick=var

[wtr-general] Re: Unable to click anchor with image inside LI tag

2011-08-30 Thread Alister Scott
you can't use a click on a non visible element. tru element.fire_event onclick -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general

[wtr-general] Re: Unable to click anchor with image inside LI tag

2011-08-30 Thread Alister Scott
try element.fire_event onclick -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com

Re: [wtr-general] run watir with ruby 1.9.2

2011-08-30 Thread Michael
I don't know about the latest ruby, but it definitely runs with 1.9.2p180. To keep things simple, uninstall 1.8.7 (especially if you're on windows), and install the desired version of ruby. From there you can install watir the same way you did for previous versions. gem update --system gem