[wtr-general] Re: Unexpected output..

2015-02-20 Thread Chuck van der Linden
On Thursday, February 19, 2015 at 10:50:18 PM UTC-8, Ping-0t wrote: > > Hello Guys, > > Again I am having trouble about my testing? I got this warnings in the > inspect element console when I try to execute my codes [below]. > > Use of getPreventDefault() is deprecated. Use defaultPrevented inste

[wtr-general] Re: Getting the line number of the error of the web application we are testing using watir. Is it possible?

2015-02-20 Thread Chuck van der Linden
if you can get cooperation from your developers there are some tactics where by you can get information about any JS errors. I do something like that, and for all failing tests one of the things the code does is check to see if there was a JS error that occured, and report the details if there

[wtr-general] Re: MooTools 1.5.1: Unable to get property 'prototype' of undefined or null reference

2015-02-20 Thread Chuck van der Linden
um where does Watir factor into the question below? On Thursday, February 19, 2015 at 10:01:55 AM UTC-8, Michael wrote: > > Hello, > > Recently in IE 11.0.9600.17280 on Windows 7 I have been getting this error: > Unable to get property 'prototype' of undefined or null reference > > The undefied o

[wtr-general] Re: How to write a test script for login and logout in ruby in a firefox browser

2015-02-20 Thread Chuck van der Linden
On Wednesday, February 18, 2015 at 10:11:03 AM UTC-8, Hifi wrote: > > How to write a test script for login and logout in ruby in a firefox > browser > Try this http://lmgtfy.com/?q=login+test+script+example+watir -- -- Before posting, please read http://watir.com/support. In short: search b

[wtr-general] Re: watir-webdriver using ruby on skype...hope it will useful to everyone

2015-02-20 Thread Chuck van der Linden
Most of us have day jobs and would not be able to just respond to skype requests at the drop of a hat. On Wednesday, February 18, 2015 at 12:10:32 AM UTC-8, rocky wrote: > > Dear all, > > Sharing knowledge on skype,who are all interest send your skype id so that > we can solve watir-webdriver

[wtr-general] Re: watir-webdriver using ruby on skype...hope it will useful to everyone

2015-02-20 Thread Chuck van der Linden
(sorry hit early)..Those of us that can respond rapidly and don't mind doing so are usually on IRC https://github.com/watir/watir/wiki/IRC-Channel On Friday, February 20, 2015 at 12:15:27 AM UTC-8, Chuck van der Linden wrote: > > Most of us have day jobs and would not be able to just resp

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-20 Thread Chuck van der Linden
On Tuesday, February 17, 2015 at 5:51:17 PM UTC-8, Nice Faith wrote: > > I have this line of codes: > > if @browser.text_field(:id => "street").exists? > puts "street exist" > puts @browser.text_field(:id => "street").html > else > puts "street does not exist" > end > > an

Re: [wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-20 Thread Chuck van der Linden
On Tuesday, February 17, 2015 at 4:18:31 AM UTC-8, Hopper wrote: > > +1 for Cucumber. > > For a while now I've been looking for something that would output simple > HTML reports with embedded screenshots for failures. Crucially, I wanted > something simple and quick to implement. > I had previou

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-20 Thread Nice Faith
The code in the line 277 is puts @browser.text_field(:id => "street").html. I try this code: puts @browser.execute_script('return document.getElementById("street")[0]').html but the error says: Error: test_login(TC_Login) : NoMethodError: undefined method `html' for nil:NilClass excel.rb:275:i

[wtr-general] Re: Ruby Watir to get specific html element of a page

2015-02-20 Thread Nice Faith
i try this one: puts @browser.execute_script <<-JS var link = document.getElementById('street') return link.innerHTML JS .. there's no error but then there's no display... On Tuesday, February 17, 2015 at 2:31:04 PM UTC+8, Nice Faith wrote: > > Hai Guys. I am just trying to explore

[wtr-general] Re: Unexpected output..

2015-02-20 Thread Ping-0t
Hi sir, I change my codes into this: require 'watir-webdriver' gem "test-unit" require 'test/unit' require "win32ole" class Login < Test::Unit::TestCase $number_of_fails = 0 $number_of_success = 0 $fields = ["first_name", "middle_name", "last_name", "sss_number", "tin_number"]

Re: [wtr-general] Re: How to display content of text file in the browser using watir?

2015-02-20 Thread Andy Hopper
Thanks Chuck, I'll definitely check those out! On 20 February 2015 at 08:35, Chuck van der Linden wrote: > On Tuesday, February 17, 2015 at 4:18:31 AM UTC-8, Hopper wrote: >> >> +1 for Cucumber. >> >> For a while now I've been looking for something that would output simple >> HTML reports with e