[wtr-general] Re: Differences in behavior between IE and FF3/3.5

2009-07-27 Thread John Kolokotronis
I don't think you can use :alt in FireWatir to identify the control - use xpath instead and it should work in both IE and FF with no changes: browser.element_by_xpath("//i...@alt = 'Members Login Here']").click Regards, John --~--~-~--~~~---~--~~ You received th

[wtr-general] Re: Data driven test using .CSV file

2009-07-27 Thread sHiVa
Hi Chris, Your idea of implemnting a CSV based framework is very nice. It used a lot in my current framework. - Thanks Regards Siva On Jul 27, 10:56 am, takanobu watanabe wrote: > Sorry spread it. > This is that CSV sample. > -- > ID,mnemonic,var-name,value > 1,companycode,c

[wtr-general] How to debug Watir code line by line.

2009-07-27 Thread Swap
Hi All, I wrote script for data driven testing with logger. I want to debug the same script line by line. Please tell me how to debug the script line by line. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[wtr-general] wants to access ie object in someother class or script

2009-07-27 Thread Akash S
Hi All, I am very new to watir, i am using watir for automation i have written following code for opening browser require "Watir" ie = Watir::IE.new #Open the application ie.goto "https://google.com"; enter some text in Fun class , class Fun def as @ie.text_field(:name,"q").set "#textd

[wtr-general] Re: Java port for Watir

2009-07-27 Thread Adrian Ghidu
Manish, I've tried watij and it has a serious problem with the tables in my web application. I need a utility for java. On Mon, Jul 27, 2009 at 7:54 AM, Manish Sapariya wrote: > > to be technically correct, celerity itself is not headless browser, > but watir api driving headless browser 'htmlun

[wtr-general] Testing Link on list of pages

2009-07-27 Thread Satya
I am writing a script to check links on a specific page. I am getting the list of pages(URL’s) from an excel file. The issue that I am facing is once the loop starts and an exception is encountered the execution stops, so I have put a ‘retry’ in the exception section. But the issue is it again sta

[wtr-general] verify table cell text.

2009-07-27 Thread srik
Hi, I Srikanth, new user of watir, I am using execution tool itest2 and recording scripts with watir. I have the somefollowing issues: 1)how to get text form table cell . 2)how to verify the table cell text using "include?" or "match" methods or any other solution. 3) if there any material or us

[wtr-general] Re: How to debug Watir code line by line.

2009-07-27 Thread Charley Baker
There are a couple of routes you can take on this: * use ruby-debug - it's a lighter weight debugger that you can insert into your script, it bumps you out into irb within the context of where you called it, here's a tutorial: http://www.datanoise.com/articles/2006/7/12/tutorial-on-ruby-debug * u

[wtr-general] Re: Testing Link on list of pages

2009-07-27 Thread Charley Baker
Put your begin and rescue inside the loop and remove the retry. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Mon, Jul 27, 2009 at 5:24 AM, Satya wrote: > > I am writing a script to check links on a specific p

[wtr-general] Getting style attribute of HTML element

2009-07-27 Thread Aaron MacDonald
I have an element with a style attribute I need to access, like this: ... Note that I am only able to see the style attribute using Firebug; it doesn't show up when I view the page source. Is it possible though to examine the style attribute through Watir? --~--~-~--~~-

[wtr-general] Re: Java port for Watir

2009-07-27 Thread Charley Baker
Celerity is a good option, otherwise I believe you should be able to use Firewatir from the latest on Github: http://github.com/bret/watir/tree/master Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Mon, Jul 27, 2

[wtr-general] Re: Getting style attribute of HTML element

2009-07-27 Thread Charley Baker
You should be able to access it like this: ie.div(:id, 'search').document.currentStyle.invoke('display') Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://wtr.rubyforge.org QA Architect, Gap Inc Direct On Mon, Jul 27, 2009 at 8:44 AM, Aaron MacDonald wrote: > > I

[wtr-general] Re: wants to access ie object in someother class or script

2009-07-27 Thread Charley Baker
You should take a look at some basic ruby tutorials, google for the Pickaxe book which is free and available online. You need to pass the variable into your class or initialize it in the class, you're currently using a combination of instance variable - @ie - inside your class and ie : require '

[wtr-general] Can I create sub folders under specs for watir craft project?

2009-07-27 Thread Peace
Hi, I use the watircraft frame work. I am wondering if I can create sub folders under test\specs\ , such as test\specs\subfolder, to organize my test scripts. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: verify table cell text.

2009-07-27 Thread Zhimin
For Page (http://itest2.com/demo/survey) with html, A101 > 1)how to get text form table cell . browser.cell(:id, "surveyId").text > 2)how to verify the table cell text using "include?" or "match" browser.cell(:id, "surveyId").text.should == "A101" > 3) if there any mater

[wtr-general] Re: Does watir support i18n testing?

2009-07-27 Thread Zhimin
Watir supports i18n, I have been using it to test a web site in chinese. I couldn't paste the sample here. But had no luck with FireWatir, it seems JSSH not supporting i18n. If you want to give a try, download iTest2 (http://itest2.com), open project c:\Program Files\iTest2\samples\demo\demo.tp

[wtr-general] Re: wants to access ie object in someother class or script

2009-07-27 Thread Rohan Ojha
Hi All, The other option that can be useful is pass the instance of "IE" as an argument to the method. So it can be something like this : LIBRARY : class Fun def as (ie,textdata) @ie.text_field(:name,"q").set "#textdata" end end CALLING SCRIPT : require 'watir' ie

[wtr-general] Attach failing with NoMethodError

2009-07-27 Thread Lori Bergan
I am setting up a new Watir env on a Win 2008 server box. The tests I have that use attach or attach_init are failing on the new box with undefined method errors (the tests pass on my existing Vista env). There must be an env issue with the new box. Does anyone have any suggestions on w

[wtr-general] can Watir run in remote webserver with linux OS??

2009-07-27 Thread Joeyjoey
hi there, i have a remote linux web server can i use Watir, for say crawling websites ? --~--~-~--~~~---~--~~ 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@g

[wtr-general] Re: can Watir run in remote webserver with linux OS??

2009-07-27 Thread Dylan
Don't see why not. Might be dangerous, depending on what sites you end up crawling, but a recursive loop should do the trick. You'll have to use something like FireWatir, unless you have IE on your linux web server :) -Dylan On Jul 27, 8:32 pm, Joeyjoey wrote: > hi there, i have a remote linux