Re: [wtr-general] Diff b/w the way of instantiating an instance of BROWSER IE

2012-07-30 Thread Željko Filipin
On Mon, Jul 30, 2012 at 8:51 PM, Sohail Mirza mrz...@gmail.com wrote: 1 - What is the difference between following two lines. browser = Watir::Browser.new ie = Watir::IE.new Both open new browser window. The first one is preferred method. Željko -- filipin.eu -- Before posting, please

Re: [wtr-general] Watir Framework?

2012-07-28 Thread Željko Filipin
On Sat, Jul 28, 2012 at 3:11 PM, Sohail Mirza mrz...@gmail.com wrote: I just wanted to know which is the best Watir Framework for automating web application? Any example available on github? I could not guarantee that it is the best, but I prefer page-object gem:

Re: [wtr-general] Watir Framework?

2012-07-28 Thread Željko Filipin
On Sat, Jul 28, 2012 at 3:30 PM, Sohail Mirza mrz...@gmail.com wrote: Could you more explain page-object gem? How to setup page-object gem? Could you give some link reference where i can find more details about page-object gem? https://github.com/cheezy/page-object

Re: [wtr-general] Pop up in Firefox, can't find code to click OK

2012-07-27 Thread Željko Filipin
On Thu, Jul 26, 2012 at 10:44 PM, Cbis cbissell12...@gmail.com wrote: I am having trouble getting around a popup in firefox. What kind od popup is it? Take a look at these pages: http://watirwebdriver.com/javascript-dialogs/ http://watirwebdriver.com/browser-popups/ Željko -- filipin.eu --

Re: [wtr-general] Click the link using Watir Webdriver

2012-07-27 Thread Željko Filipin
On Fri, Jul 27, 2012 at 12:14 AM, MjHerz matt.her...@capella-mt.com wrote: but how can this work manually yet not work when I run the whole .rb file? If it works in IRB but not when you run the script, the usual cause is that when you type commands in IRB there is a few seconds between each

Re: [wtr-general] Error in oracle database connection

2012-07-26 Thread Željko Filipin
On Thu, Jul 26, 2012 at 3:58 PM, Pavak Shah pavaknsha...@gmail.com wrote: When I try to connect to oracle database, This is group for watir support. You will get better database support in a specialized group or general ruby forum. Željko -- filipin.eu -- Before posting, please read

Re: [wtr-general] Does anyone using RDBI to connect to DB?

2012-07-26 Thread Željko Filipin
On Thu, Jul 26, 2012 at 7:48 PM, lanaqa l...@live365.com wrote: I also didn't see any discussion about RDBI, does it mean only DBI should be used with watir? This is group for watir support. You will get better database support in a specialized group or general ruby forum. Watir just drives the

Re: [wtr-general] Re: Path to Ruby scripts

2012-07-25 Thread Željko Filipin
On Wed, Jul 25, 2012 at 10:49 AM, mitu mitu81sw...@gmail.com wrote: Can anybody teach me how to create a framework to automate a web application in Watir Ruby. I am using page-object gem on a couple of projects, and I like it so far. A few links: https://github.com/cheezy/page-object

Re: [wtr-general] Error when running the scripts in latest firefox browser

2012-07-24 Thread Željko Filipin
On Tue, Jul 24, 2012 at 9:35 AM, Gajendra Jain jain.gajen...@gmail.com wrote: I am getting following error when i run the script in the Firefox 14. Uncaught exception: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055)

Re: [wtr-general] Click not working in Chrome

2012-07-21 Thread Željko Filipin
On Fri, Jul 20, 2012 at 11:05 PM, CJ cjr...@gmail.com wrote: It was giving you a time out on the submit? Or on the page load? On page load. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Passing two arguments from feature file to step definition

2012-07-20 Thread Željko Filipin
On Fri, Jul 20, 2012 at 2:22 AM, Barry Horgan bhor...@spreets.com wrote: When I add credits to users account credit_amount expiry_date ... Step definition: def add_credits (credit_amount, expiry_date) @browser.link(:text = Add Credit).click @browser.frame(:id =

Re: [wtr-general] Click not working in Chrome

2012-07-19 Thread Željko Filipin
On Wed, Jul 18, 2012 at 10:11 PM, CJ cjr...@gmail.com wrote: Here's a link to the page I'm trying to get to submit: http://intforms.wildwoodclient.com/login.php There is something wrong with that page. Chrome returns Timeout::Error for this: browser.goto

Re: [wtr-general] Select first option of a select box

2012-07-19 Thread Željko Filipin
On Thu, Jul 19, 2012 at 11:03 AM, Duleep Thivanka duleepthiva...@gmail.com wrote: Need to select first option of a select box. Something like this should work (not tested) browser.select(:id = my-id).options.first More information:

Re: [wtr-general] watir/ruby in Jenkins

2012-07-18 Thread Željko Filipin
On Tue, Jul 17, 2012 at 4:06 PM, Ry crossan...@gmail.com wrote: Just double checked and yes the script works when launching from desktop, Ruby bash, or Windows bash. I guess I was not explicit. Are you saying watir 3.0.rc was running fine from Jenkins, and watir 3.0 does not? I had some fun

Re: [wtr-general] Click not working in Chrome

2012-07-18 Thread Željko Filipin
On Wed, Jul 18, 2012 at 2:44 AM, CJ cjr...@gmail.com wrote: b.button(:name = submit1).fire_event onClick Something like that I had in mind. I think it might be worthy to note that I ALSO tried the Google Button test code, copying it EXACTLY, and it doesn't work either. Could you please sent

Re: [wtr-general] Click not working in Chrome

2012-07-17 Thread Željko Filipin
Maybe you need to fire javascript event: http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] watir/ruby in Jenkins

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 3:29 AM, Ry crossan...@gmail.com wrote: Yes I was previously on Watir 3.0 r3 Does the script work fine with that Watir version? Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Unable to download file using WATIR and AutoIT from Firefox

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 8:55 AM, Mahesh Shivankar maheshshivankar...@gmail.com wrote: Also is there any other way around for the intended task ? Yes. The simplest thing is to disable the popup and download the file directly: http://watirwebdriver.com/browser-downloads/ Željko --

Re: [wtr-general] Re: Connection Errors when running simultaneous tests and closing browser

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 1:58 AM, Michael Le mike.l...@gmail.com wrote: Updated ChromeDriver fixed the problem. Thanks for letting us know. Chrome updates frequently and it is important to have the latest chrome driver or, as you have noticed, strange things could happen. Željko -- filipin.eu

Re: [wtr-general] How to handle download bar in IE 9

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 7:32 AM, Agung Surya agungsury...@gmail.com wrote: I'm having a problem regarding access the new pop up in IE 9 using Watir Are you using watir or watir-webdriver gem? Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before

Re: [wtr-general] Unable to download file using WATIR and AutoIT from Firefox

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 11:06 AM, Mahesh Shivankar maheshshivankar...@gmail.com wrote: I initially tried with watir-webdriver gem but could not get ahead, so was looking forward to using watir/WindowHelper approach that I had come across.googlegroups.com But watir gem can only drive IE. Didn't

Re: [wtr-general] Unable to download file using WATIR and AutoIT from Firefox

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 11:26 AM, Mahesh Shivankar maheshshivankar...@gmail.com wrote: Yes, I did initially mention that. So, how do you plan to drive FF with watir gem? Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] use of Watir and Watir-Webdriver

2012-07-17 Thread Željko Filipin
On Tue, Jul 17, 2012 at 3:13 PM, Gajendra Jain jain.gajen...@gmail.com wrote: Can we use both Watir and Watir-Webdriver feature together to design the automation scripts? I think the only limitation is that you can not require them together, but using them separately should work. Željko --

Re: [wtr-general] watir/ruby in Jenkins

2012-07-14 Thread Željko Filipin
On Fri, Jul 13, 2012 at 10:32 PM, Ry crossan...@gmail.com wrote: I just updated my watir to latest, but script is failing in jenkins build. Please provide the code that causes the error message. From what version of watir did you upgrade to 3.0? You can uninstall old versions of watir gem with

Re: [wtr-general] Re: Automating import feature in TestLink

2012-07-13 Thread Željko Filipin
On Fri, Jul 13, 2012 at 5:33 AM, Mahesh Shivankar maheshshivankar...@gmail.com wrote: I downloaded the executable file but i'm having hard time placing it. And the problem is? Željko -- filipin.eu -- Before posting, please read http://watir.com/support. In short: search before you ask, be

Re: [wtr-general] Webdriver and offline usage.

2012-07-13 Thread Željko Filipin
On Fri, Jul 13, 2012 at 2:55 AM, Daniel P. Clark 6ft...@gmail.com wrote: Why does Watir-webdriver not work when the computer isn't connected to the internet? I am not sure what could be the problem. I can open Firefox from IRB using watir-webdriver on my mac when I am not connected to the

Re: [wtr-general] Help needed in Upgrading Webdrivers

2012-07-11 Thread Željko Filipin
On Wed, Jul 11, 2012 at 1:22 AM, Avik avik.h...@gmail.com wrote: “uninitialized constant Watir::WebDriver (NameError)” Please provide the code that causes the error and the entire error message. Selenium::WebDriver::Error::WebDriverError: Unable to find standalone executable. Please download

Re: [wtr-general] Click the link using Watir Webdriver

2012-07-11 Thread Željko Filipin
On Wed, Jul 11, 2012 at 7:37 AM, Gajendra Jain jain.gajen...@gmail.com wrote: https://www.servage.net/blog/wp-content/uploads/2009/03/css-menu.html I want to click on the link The Team which is only visible if we mouse over to About link. This should do it: browser.a(:text = About).hover

Re: [wtr-general] Click the link using Watir Webdriver

2012-07-11 Thread Željko Filipin
On Wed, Jul 11, 2012 at 3:00 PM, Gajendra Jain jain.gajen...@gmail.com wrote: Uncaught exception: Cannot perform native interaction: Could not load native events component. Disable native events then: profile = Selenium::WebDriver::Firefox::Profile.new profile.native_events = false

Re: [wtr-general] watir

2012-07-11 Thread Željko Filipin
On Wed, Jul 11, 2012 at 3:09 PM, mani racha manira...@gmail.com wrote: browser.select_list(:id,...).set( ) browser.select_list(:id,' ').select_item_in_select_list(:index,2) #set and #select_item_in_select_list methods do not exist for select lists. Try browser.select_list.select More

Re: [wtr-general] Aliases not working

2012-07-09 Thread Željko Filipin
On Mon, Jul 9, 2012 at 6:50 AM, tkp trupty...@gmail.com wrote: The error thrown is Undefined method... I need the old method set to works since the test cases written are too huge to be modified. Looks like SelectList#set was deprecated. What to you mean by too huge to be modified? I am just

Re: [wtr-general] XML output from Watir

2012-07-05 Thread Željko Filipin
On Thu, Jul 5, 2012 at 6:29 PM, Ry crossan...@gmail.com wrote: Which library would be most helpful that I should invest time learning to use for XML output from a watir script. Cucumber[1] has --format junit option that will create xml reports. ci_reporter[2] creates xml reports for cucumber,

Re: [wtr-general] Watir wait until key pressed

2012-06-28 Thread Željko Filipin
On Thu, Jun 28, 2012 at 9:46 AM, Alex Rudnitsky person...@gmail.com wrote: I want to Watir to do a pause and when I press a special key - to make Watir go ahead doing the next steps. You can use ruby's #gets method: http://www.ruby-doc.org/core-1.9.3/IO.html#method-i-gets Example: $ irb

Re: [wtr-general] browser.confirm error

2012-06-26 Thread Željko Filipin
On Mon, Jun 25, 2012 at 11:31 PM, RJ rj412@gmail.com wrote: how to correctly use confirm Alert? browser.confirm.ok This should do it: browser.alert.ok More information: http://watirwebdriver.com/javascript-dialogs/ Željko -- filipin.eu -- Before posting, please read

Re: [wtr-general] browser.confirm error

2012-06-26 Thread Željko Filipin
On Tue, Jun 26, 2012 at 3:20 PM, RJ rj412@gmail.com wrote: Watir::Exception::UnknownObjectException: unable to locate alert I did not use the new alert api, so I do not have a lot of experience. The error message says the alert is not there. Please share more relevant code. Željko --

Re: [wtr-general] Accessing web table

2012-06-25 Thread Željko Filipin
On Sun, Jun 24, 2012 at 9:15 PM, Jeff M jeffmitchel...@gmail.com wrote: tobj = browser.table(:id, 'yfncsumtab') I'm consistently getting errors of this sort, which makes me think the table isn't being found by the script: #Watir::Table:0x657b398a located=false

Re: [wtr-general] framesets in watir

2012-06-22 Thread Željko Filipin
On Fri, Jun 22, 2012 at 7:42 AM, sathiya sathiyan.m...@gmail.com wrote: I am not able to click a link inside the framset I think frameset can not contain html, just frames. Please provide minimal amount of html code that represents how the link is nested in framesets and frames. Željko --

Re: [wtr-general] Re: launcher.rb firefox

2012-06-21 Thread Željko Filipin
On Wed, Jun 20, 2012 at 9:07 PM, Chuck van der Linden sqa...@gmail.com wrote: This is more of a webdriver issue than a watir issue, you might be better off asking it in the selenium users group Or even selenium developers group. Željko -- Before posting, please read http://watir.com/support.

Re: [wtr-general] already initialized constant

2012-06-21 Thread Željko Filipin
On Wed, Jun 20, 2012 at 5:11 PM, Pavak Shah pavaknsha...@gmail.com wrote: When I remove require 'win32ole' include Watir, It gives Using the default Profile... line as a infinite loop. Create a script that will just execute Watir code, without Cucumber. Do you know how

Re: [wtr-general] Script execution

2012-06-20 Thread Željko Filipin
On Wed, Jun 20, 2012 at 9:09 AM, Gajendra Jain jain.gajen...@gmail.com wrote: I have execute all the scripts in sequence and during the execution if any script fails, the test execution should not stop in between. You should use a test runner, like test/unit, rspec or cucumber. They have that

Re: [wtr-general] retrieve the value from error message

2012-06-20 Thread Željko Filipin
On Wed, Jun 20, 2012 at 9:23 AM, Gajendra Jain jain.gajen...@gmail.com wrote: Is there a way to get the value The Account with the ID, accountID27, already exists. by passing html tag DIV class=alertMsg. Because the message varies on different situation but class remain same. EX: DIV

Re: [wtr-general] already initialized constant

2012-06-20 Thread Željko Filipin
On Tue, Jun 19, 2012 at 9:10 PM, John Cena pavaknsha...@gmail.com wrote: I am getting already initialized constant VERSION superclass mismatch for class UnknownObjectException. Looks like you have several problems here. Please post minimal amount of code that still reproduces the error. Željko

Re: [wtr-general] Get value from the webpage

2012-06-20 Thread Željko Filipin
On Wed, Jun 20, 2012 at 11:44 AM, Gajendra Jain jain.gajen...@gmail.com wrote: Please find the html tag below from where i have to get the value by passing the dt tag(DTSystem Account ID /DT). and it should return me 37914766 DL class=col_3 DTSystem Account ID /DT DD37914766 /DD DTAccount

Re: [wtr-general] Get value from the webpage

2012-06-20 Thread Željko Filipin
On Wed, Jun 20, 2012 at 12:09 PM, Gajendra Jain jain.gajen...@gmail.com wrote: But When i tried DT Account Name/DT, i got the same value 37914766, Where as my expected value should be AccountName1 Try this: browser.dt(:text = Account Name ).parent.dd(:index = 1).text Željko -- filipin.eu --

Re: [wtr-general] already initialized constant

2012-06-20 Thread Željko Filipin
On Wed, Jun 20, 2012 at 3:10 PM, John Cena pavaknsha...@gmail.com wrote: require 'win32ole' include Watir Remove this two lines from env.rb and try again. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: finding a object without knowing the object type

2012-06-18 Thread Željko Filipin
On Mon, Jun 18, 2012 at 10:33 AM, CrazyFrog raymondwie...@gmail.com wrote: c:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-classic-3.0.0/lib/watir-classic/element.rb:433:in `method_missing': undefined method `set' for #Watir::HTMLElement:0x2fed2b0 (NoMethodError) Element class does not have method

Re: [wtr-general] Re: Watir Ajax - running into error

2012-06-18 Thread Željko Filipin
On Mon, Jun 18, 2012 at 2:40 PM, Suzie Nieman niema...@gmail.com wrote: def workspace; @browser.text(:name, store); end browser.text should be browser.text_field Željko -- filipin.eu Looking for a software tester that eats, sleeps and breathes Watir? Look no more. -- Before posting, please

Re: [wtr-general] Iterate through rows and cells then click button

2012-06-18 Thread Željko Filipin
On Mon, Jun 18, 2012 at 4:37 PM, Joshua Homer countjoshing...@gmail.com wrote: Thank you for your help, it took my test time from 90 seconds to 10 :D Need moar speed? Read this: http://zeljkofilipin.com/watir-nokogiri/ Željko -- Before posting, please read http://watir.com/support. In short:

Re: [wtr-general] Using Watir Webdriver I am able to detect that a WYSIWYG ckeditor exists, but any attempt to send_keys to it outputs a blank string?

2012-06-18 Thread Željko Filipin
On Mon, Jun 18, 2012 at 3:55 PM, Alex ap...@weddingwire.com wrote: Problem seems to be only when attempting to enter any text to the WYSIWYG ckeditor. Did you read this? http://watirwebdriver.com/wysiwyg-editors/ Željko -- filipin.eu Looking for a software tester that eats, sleeps and breathes

Re: [wtr-general] Scrolling up or down on a page

2012-06-15 Thread Željko Filipin
On Thu, Jun 14, 2012 at 9:43 PM, Joe Fl joeflec...@gmail.com wrote: I am using watir-webdriver and interacting with Firefox. Its a windows7 VM. It works on my MAC Book Pro without issue. Please share the code. This could help: http://stackoverflow.com/a/9469506/17469 Željko -- Before

Re: [wtr-general] Iterate through rows and cells then click button

2012-06-15 Thread Željko Filipin
On Thu, Jun 14, 2012 at 9:41 PM, Joshua Homer countjoshing...@gmail.com wrote: 1) go through each row in table 2) go through each cell in rows 3) look for 905 in each cell 4) when 905 is found click on the button with the title Edit User in the row I would do it something like this:

Re: [wtr-general] watir ruby: cannot write double-byte characters in IE

2012-06-13 Thread Željko Filipin
On Wed, Jun 13, 2012 at 5:02 AM, Doris Tian 895512...@qq.com wrote: Because our team is a very old team, the automation scripts were written years ago, so the Ruby and Watir's version are too old. Makes sense now. I am in the same situation with one of my clients. I remember old versions of

Re: [wtr-general] Facing problem while launching Firefox(13) using Watir-Webdriver

2012-06-13 Thread Željko Filipin
On Wed, Jun 13, 2012 at 6:47 AM, Srinivas saros...@gmail.com wrote: watir-webdriver-0.4.1 selenium-webdriver-2.20.0 If you want to drive new versions of firefox, you should probably update your gems. Željko -- Before posting, please read http://watir.com/support. In short: search before you

Re: [wtr-general] Text Selection with mouse events

2012-06-13 Thread Željko Filipin
On Wed, Jun 13, 2012 at 12:42 AM, Andres Yajamin andr...@digintent.com wrote: Is there a way to simulate a mouse select a piece of text from a div container There is #select_text(str) method: http://watir.github.com/watir-webdriver/doc/Watir/Element.html#select_text-instance_method But, I am

Re: [wtr-general] watir ruby: cannot write double-byte characters in IE

2012-06-13 Thread Željko Filipin
On Wed, Jun 13, 2012 at 10:31 AM, Doris Tian 895512...@qq.com wrote: Could you give me some detail solutions. Sorry, but no. I think that was the last time I had to deal with that. I think the newer versions of ruby (1.9.x) have that problem solved. Željko -- Before posting, please read

Re: [wtr-general] Explorer User Prompt

2012-06-11 Thread Željko Filipin
Are you using watir or watir-webdriver gem? Željko -- 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] Explorer User Prompt

2012-06-09 Thread Željko Filipin
On Sat, Jun 9, 2012 at 7:27 PM, sivam sivamma...@gmail.com wrote: Hi the details on the below link is also not working Not working does not tell me anything. You will have to provide more data. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask,

Re: [wtr-general] Unable to locate element, using {:tag_name=[a], :id=tmB100002} (Watir::Exception::UnknownObjectException)

2012-06-08 Thread Željko Filipin
You should ask this at testwise support forum, since this is related to their recorder. Željko On Fri, Jun 8, 2012 at 2:02 PM, sireesha oleti oletis...@gmail.com wrote: when iam trying to copy recorder code from firefox to watir(IE),while executing iam getting below error executing

Re: [wtr-general] Explorer User Prompt

2012-06-04 Thread Željko Filipin
On Sat, Jun 2, 2012 at 8:21 PM, sivam sivamma...@gmail.com wrote: Is there any way to handle this prompt window with sending some inputs. Maybe this would help: http://watirwebdriver.com/javascript-dialogs/ Željko -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] Screenshots in Safari

2012-06-01 Thread Željko Filipin
On Fri, Jun 1, 2012 at 3:25 PM, Tom Initsix t...@initsix.co.uk wrote: Hi im using the watir webdriver with safari and it all works fine (after installing a dev certificate and extension of course) but for some reason it wont take screenshots. I think Jari said screen shots (and a few other

Re: [wtr-general] Re: Screenshots in Safari

2012-06-01 Thread Željko Filipin
As far as I understand it, watir-webdriver gem uses safaridriver to drive Safari. Zeljko On 1. 6. 2012., at 15:41, Tom Initsix t...@initsix.co.uk wrote: Im not using safaridriver though, im just including watir-webdriver, shouldnt that make a difference? On Jun 1, 3:39 pm, Željko Filipin

Re: [wtr-general] LIBMYSQL.dll error when trying to run watir scripts

2012-06-01 Thread Željko Filipin
On Fri, Jun 1, 2012 at 8:33 PM, Joe Fl joeflec...@gmail.com wrote: The program can't start because LIBMYSQL.dll is missing from your computer. Never heard about that error message. Did you follow these installation instructions?

Re: [wtr-general] Re: Button click causing webpage error message.

2012-06-01 Thread Željko Filipin
On Fri, Jun 1, 2012 at 7:43 PM, JimJamie jbailey...@gmail.com wrote: Do you think moving up to IE9 would hurt anything? Try, and let us know. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Re: Button click causing webpage error message.

2012-06-01 Thread Željko Filipin
On Fri, Jun 1, 2012 at 7:43 PM, JimJamie jbailey...@gmail.com wrote: • gem install watir -v 1.6.5 Works fine now. All our scripts were written a while ago so I needed an older version. Believe it or not, I am almost in the same situation. I am helping a client upgrade from ruby 1.8.6 and

Re: [wtr-general] debug the script

2012-05-31 Thread Željko Filipin
On Thu, May 31, 2012 at 7:46 AM, Gajendra Jain jain.gajen...@gmail.com wrote: Is there any way, we can debug the WATIR scripts step by step? Google for ruby debugger. Rubymine IDE has a debugger, but I have used it maybe once or twice. Can we run the scripts on the existing opened browser? If

Re: [wtr-general] Button click causing webpage error message.

2012-05-31 Thread Željko Filipin
On Thu, May 31, 2012 at 8:14 PM, JimJamie jbailey...@gmail.com wrote: As soon as the command is given to click the Sign On button a Message from webpage pops up: Please enter all the required fields. Show us relevant code. Željko -- watir.com/book - author -- Before posting, please read

Re: [wtr-general] Re: Button click causing webpage error message.

2012-05-31 Thread Željko Filipin
On Thu, May 31, 2012 at 10:41 PM, JimJamie jbailey...@gmail.com wrote: I don't think it is the code I'm using. I think it may be gems that are incompatible with my version of Ruby and or Win7 I'm using. Try and let us know. Is the site public. The easiest way to debug is if we can try

Re: [wtr-general] Object doesn't support #inspect after goto

2012-05-28 Thread Željko Filipin
On Mon, May 28, 2012 at 5:25 PM, Andrés andresfelip...@gmail.com wrote: irb(main):002:0 browser = Watir::IE.new What happens when you replace this with: browser = Watir::Browser.new Željko -- watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] need help to test flash applications

2012-05-28 Thread Željko Filipin
On Sun, May 27, 2012 at 1:02 AM, Chuck van der Linden sqa...@gmail.com wrote: Either way good to know it should work just fine from regular ruby. (have you put any examples of that up anywhere?) I plan to write about it on my blog soon. Željko -- Before posting, please read

Re: [wtr-general] Re: automation framework for web

2012-05-26 Thread Željko Filipin
On Sat, May 26, 2012 at 6:41 PM, gajendra jain.gajen...@gmail.com wrote: I mean, I wanted some folder structure where i can maintain the object repository, data(in Excel) required for the application, and the function related to the application in different folders. In that case, check the

Re: [wtr-general] check element within a div

2012-05-24 Thread Željko Filipin
On Thu, May 24, 2012 at 9:36 AM, Litha K litha...@googlemail.com wrote: browser.div(:class, 'some_class').element(:id, 'flash_object_id').exists?, but its returning false. Please share HTML when flash element is present, and when it is not. Željko -- watir.com/book - author -- Before

Re: [wtr-general] Re: check element within a div

2012-05-24 Thread Željko Filipin
On Thu, May 24, 2012 at 2:39 PM, Litha K litha...@googlemail.com wrote: Thanks Zeljko, the flash is always there on the page: If it is always there, why are you checking that? object id=defaultId width=726 height=310 type=application/x- shockwave-flash

Re: [wtr-general] need help to test flash applications

2012-05-18 Thread Željko Filipin
On Fri, May 18, 2012 at 4:40 AM, Sunflower arram...@gmail.com wrote: How do i approach to test flash applications? You will have to use another tool, since Watir can not test flash. Željko -- watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] need help to test flash applications

2012-05-18 Thread Željko Filipin
On Fri, May 18, 2012 at 9:41 AM, Sridhar Arramaraju arram...@gmail.com wrote: Could you please suggest any? I never had to test flash, but you could try Sikuli: http://sikuli.org/ Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] need help to test flash applications

2012-05-18 Thread Željko Filipin
On Fri, May 18, 2012 at 6:05 PM, Chuck van der Linden sqa...@gmail.com wrote: Most folks that need to do this end up running watir via JRUBY I have called sikuli scripts from normal ruby, there is no need to use jruby. You can call any script from ruby. Željko -- Before posting, please read

Re: [wtr-general] Element Present, but not able to click in watir-webdriver using Ruby

2012-05-17 Thread Željko Filipin
On Thu, May 17, 2012 at 9:02 AM, Srinivas saros...@gmail.com wrote: Note: This element is an Flash object element. From https://github.com/zeljkofilipin/watirbook/blob/master/about.md#what-it-can-not-do It is important to say that Watir CAN NOT control browser plugins like Java applets, Adobe

Re: [wtr-general] Element Present, but not able to click in watir-webdriver using Ruby

2012-05-16 Thread Željko Filipin
On Tue, May 15, 2012 at 2:40 PM, Srinivas saros...@gmail.com wrote: I tried to click an div tag element using its class name in Firefox browser and it was not triggered. This could help: http://stackoverflow.com/questions/3787555/how-to-find-out-which-javascript-events-fired Željko --

Re: [wtr-general] Re: modal window

2012-05-16 Thread Željko Filipin
On Thu, May 3, 2012 at 4:22 AM, Sabarish sabaris...@gmail.com wrote: where watir 3 api is hosted? http://rubydoc.info/gems/watir http://rubydoc.info/gems/watir-classic Željko -- watir.com/book - author -- Before posting, please read http://watir.com/support. In short: search before you ask,

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-09 Thread Željko Filipin
On Wed, May 9, 2012 at 3:40 AM, Cassiano Leal cassianol...@gmail.com wrote: page-object didn't work for this website If you share an example, maybe we could help. I do not see how it would not work for any site. Željko -- Before posting, please read http://watir.com/support. In short: search

Re: [wtr-general] watir specific version installtion.

2012-05-09 Thread Željko Filipin
On Wed, May 9, 2012 at 1:39 AM, Bhavesh bhavesh1_sha...@yahoo.com wrote: there is no .exe file too. The only exe file we had was for watir 1.4.1 and that was back in 2005: http://rubyforge.org/frs/?group_id=104 So is there a way by which we can install specific version of watir? Sure. For

Re: [wtr-general] Watir with RubyMine and Opera

2012-05-09 Thread Željko Filipin
On Wed, May 9, 2012 at 11:05 PM, Tom Initsix t...@initsix.co.uk wrote: It works if i launch opera from irb so it must be something to do with RubyMine's config. I would suggest that you ask at rubymine support forum, since it looks like the problem is there. Željko -- watir.com/book - author

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Željko Filipin
On Tue, May 8, 2012 at 4:53 PM, Cassiano Leal cassianol...@gmail.com wrote: def file_name @browser.frame.file_field(id: 'fileName') end def file_name=(filename) file_name.set filename end The problem is that neither work. :) Does this work?

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Željko Filipin
On Tue, May 8, 2012 at 5:06 PM, Cassiano Leal cassianol...@gmail.com wrote: [1] pry(#SabrixDataInterchange) file_name = nil Please paste the entire script, or the entire IRB session. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Željko Filipin
On Tue, May 8, 2012 at 5:24 PM, Cassiano Leal cassianol...@gmail.com wrote: @Željko: https://gist.github.com/2636234 Could you please provide the minimum amount of code that still reproduces the problem? Željko -- Before posting, please read http://watir.com/support. In short: search before

Re: [wtr-general] file_field returns null from method, works when called directly

2012-05-08 Thread Željko Filipin
I would suggest that you start using page-object gem instead of creating your own implementation: https://github.com/cheezy/page-object Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] finding a object without knowing the object type

2012-05-07 Thread Željko Filipin
On Mon, May 7, 2012 at 3:00 PM, CrazyFrog raymondwie...@gmail.com wrote: Can i do the same in Watir without using the selenium gem? Yes. browser.element(:id = an_id) After i have found the element i want to call some functions like click or set text functions is that possible? Yes.

Re: [wtr-general] how to verify that object tag does not exist with watir-webdriver?

2012-05-04 Thread Željko Filipin
On Fri, May 4, 2012 at 10:42 AM, Dmitry Motrenko dmotre...@gmail.com wrote: So I an need to verify that object does not exist, and video tag exist. If that is all, this should probably do it (not tested): browser.object.exists? browser.video.exists? If you provide link to the page or HTML

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Wed, May 2, 2012 at 2:57 PM, onk onka...@gmail.com wrote: it's a wonderful tool to test web application I agree. but how to test rich web application using ajax, YUI, javascript, drag and drop utility What is the problem? I tested a lot of applications that were buzzword compliant

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Thu, May 3, 2012 at 11:46 AM, onk onka...@gmail.com wrote: It's interresting that you have tested buzzword compiliant i want sincerly know how to do that What is the problem? What have you tried so far? Željko -- Before posting, please read http://watir.com/support. In short: search before

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Thu, May 3, 2012 at 2:12 PM, onk onka...@gmail.com wrote: i can't skape the necesserity of an auto-generation of script cause i don't know how it developped I am not sure what are you trying to say. Željko -- Before posting, please read http://watir.com/support. In short: search before

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Thu, May 3, 2012 at 2:40 PM, Cassiano Leal cassianol...@gmail.com wrote: I think he means that he needs some sort of record/playback tool because he doesn't know how to code. If he does not know how to code, then Watir is not the right tool for him. Or, he could learn how to code. Željko --

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Thu, May 3, 2012 at 2:47 PM, onk onka...@gmail.com wrote: how to simulate the navigator bahaviour if we don't know how the web application is it developped? You have to be more explicit. An Example Would Be Handy Right About Now[1]. Give us an example of what you want to do. Željko -- [1]

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Thu, May 3, 2012 at 2:56 PM, onk onka...@gmail.com wrote: Watir suppose that the developper of the application is who must do the test No. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] generator of watir code for rich web application

2012-05-03 Thread Željko Filipin
On Thu, May 3, 2012 at 3:19 PM, onk onka...@gmail.com wrote: ok, in my application there is a work space manager where we can drag and drop widget . coul you tell me how to test that? Sure, if you provide link to the application, or some HTML code. Željko -- Before posting, please read

Re: [wtr-general] How quick the 'watir-webdriver' gem updates the browser versions

2012-05-01 Thread Željko Filipin
On Mon, Apr 30, 2012 at 7:16 PM, Chuck van der Linden sqa...@gmail.com wrote: However to get the support you may need to update your selenium-webdriver gem, or an external driver such as the 'chromedriver' needed for chrome. This is generally pretty easy to do, but is NOT automatic +1. I forgot

Re: [wtr-general] How quick the 'watir-webdriver' gem updates the browser versions

2012-04-30 Thread Željko Filipin
On Mon, Apr 30, 2012 at 9:19 AM, sathish.benil sathish.be...@ust-global.com wrote: How quick the gem 'watir-webdriver' will updates the browser versions watir-webdriver gem will not update your browsers, you have to do it yourself, if that was the question. If you ask when new browser

Re: [wtr-general] Handling Java script Popup with Ruby in WATIR

2012-04-27 Thread Željko Filipin
On Fri, Apr 27, 2012 at 8:42 AM, AQUA manavkbgu...@gmail.com wrote: I have been working on WATIR for sometimes, but finding issues in handling Java Script pop-ups. If you are using watir-webdriver, this could help: http://watirwebdriver.com/javascript-dialogs/ Željko -- watir.com/book - author

Re: [wtr-general] using .parent to click in UI.

2012-04-26 Thread Željko Filipin
On Wed, Apr 25, 2012 at 11:29 PM, Bhavesh bhavesh1_sha...@yahoo.com wrote: image(:class,x-tree-ec-icon x-tree-elbow-end-plus) There is no image with that class in the HTML you have provided. Try something like this: browser.span(:text =f_t).parent.parent.img(:class =x-tree-ec-icon).click

Re: [wtr-general] Re: Getting Hash value instead of actual link from email.

2012-04-26 Thread Željko Filipin
On Thu, Apr 26, 2012 at 1:06 AM, Bhavesh bhavesh1_sha...@yahoo.com wrote: I already posted the query for this on : http://groups.google.com/group/mail-ruby I will reply there. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Need help in Invoking multiple IE's

2012-04-26 Thread Željko Filipin
On Thu, Apr 26, 2012 at 2:17 AM, Bhavesh bhavesh1_sha...@yahoo.com wrote: $ie.attach(/previous IE/) Why do you attach to $ie? It has been a while since I have last used watir gem (I use watir-webdriver gem), but as far as I remember you could do it like this: browser1 =

<    1   2   3   4   5   6   7   8   9   10   >