Sir when I try to run your example, I have all this errors.

------------------------------------

Welcome to Git (version 1.9.4-preview20140929)


Run 'git help git' to display the help index.
Run 'git help <command>' to display help for specific commands.

User1@DOCUMENTATIONS ~
$ cd c:

User1@DOCUMENTATIONS /c
$ cd ruby193/tests

User1@DOCUMENTATIONS /c/ruby193/tests
$ rspec new.rb > log_new.txt
c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/selenium/webdr
iver/chrome/service.rb:20:in `executable_path': Unable to find the 
chromedriver
executable. Please download the server from 
http://chromedriver.storage.googleap
is.com/index.html and place it somewhere on your PATH. More info at 
http://code.
google.com/p/selenium/wiki/ChromeDriver. 
(Selenium::WebDriver::Error::WebDriverE
rror)
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/s
elenium/webdriver/chrome/service.rb:33:in `default_service'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/s
elenium/webdriver/chrome/bridge.rb:14:in `initialize'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/s
elenium/webdriver/common/driver.rb:37:in `new'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/s
elenium/webdriver/common/driver.rb:37:in `for'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.44.0/lib/s
elenium/webdriver.rb:67:in `for'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.11/lib/wati
r-webdriver/browser.rb:46:in `initialize'
        from c:/ruby193/tests/new.rb:3:in `new'
        from c:/ruby193/tests/new.rb:3:in `<top (required)>'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/configuration.rb:1226:in `load'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/configuration.rb:1226:in `block in load_spec_files'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/configuration.rb:1224:in `each'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/configuration.rb:1224:in `load_spec_files'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/runner.rb:97:in `setup'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/runner.rb:85:in `run'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/runner.rb:70:in `run'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/lib/rspec/core
/runner.rb:38:in `invoke'
        from 
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-3.2.0/exe/rspec:4:in
 `<top (required)>'
        from c:/Ruby193/bin/rspec:23:in `load'
        from c:/Ruby193/bin/rspec:23:in `<main>'

User1@DOCUMENTATIONS /c/ruby193/tests
$

On Wednesday, February 11, 2015 at 10:23:19 PM UTC+8, Super Kevy wrote:
>
> Welcome! Assume the following example and apply to your test
> Keep in mind simple verification points using things like
>  .wait_until_present(90)
>  .include? 
>  .present?
>  .visible?
>
> Very rough sample
>
> require 'watir-webdriver'
>
> ie = Watir::Browser.new(:chrome) 
> ie.window.maximize()
> ie.goto('http://mysample.com')
> ie.text_field(:id,'loginInput').wait_until_present(30)
> ie.text_field(:id,'loginInput').set('admin')
> ie.text_field(:id,lpasswordInput').set('password')
> ie.button(:text,'Sign In').click
> if ie.text.include?('login error message') then 
>   puts ' - fail bad login'
>   exit
> end
> puts ' - you must of logged in....'  
> puts ' - Here you'd add a fingerprint like is the Welcome div found.'
>
>
>
> On Tuesday, February 10, 2015 at 8:28:49 PM UTC-6, Ping-0t wrote:
>>
>> Good Day All,
>>
>> I was assigned to do this task and I am wondering if is it possible in 
>> watir? I was asked to display numbers of errors and the location or line of 
>> each error in the browser. The error I am talking about are the values I 
>> input in the browser.
>>  Example: 
>>      - The password and the username that can LOGIN in the system is :
>>        username: admin
>>        password: admin
>> It will display no error or success.
>>
>> But if I input wrong username or password it should display an error then 
>> it has locate which line the error occur. 
>>
>> If it is possible, how can I do this.
>>
>> Can you help me guys,
>>
>> Thanks in advance,
>>
>> Helfe :)
>>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to