Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 18 results for
watir
- Page 1
watir and selectlist
Programming
Web Development
15 Years Ago
by dragonflyuk
I'm experimenting with ruby and
watir
for parsing data from the web. I'm having no …
Re: watir and selectlist
Programming
Web Development
14 Years Ago
by sridharupputuri
[QUOTE=dragonflyuk;681260]I'm experimenting with ruby and
watir
for parsing data from the web. I'm having no …
help in watir
Programming
Web Development
15 Years Ago
by sathya_k_83
… Ruby 1.8.5-21 and also installed the
watir
gem. but when i use the below statement require… '
watir
' #i get the below error ./
watir
.rb:4: uninitialized constant
Watir
(NameError) from c:/ruby/lib…site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from
watir
.rb:2 >Exit code: 1 please tell me …
Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by mattyd
… error message: **<Main> undefined local variable or method ''
watir
'' for main: Object <NameError>** I have reserached this…. Version: ruby 2.2.6p396 Script: ` require ‘
watir
’ require ‘
watir
-webdriver’
Watir
::Browser.default = “firefox” browser =
Watir
::Browser.start "https://www.website.com…
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by rproffitt
I was reading the FAQ there and I'm not finding
watir
in that installer. I could be wrong about that. https://stackoverflow.com/questions/15234316/unable-to-install-any-gems-
watir
-webdriver-selenium-webdriver has a few commands to check out including one to install
watir
.
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by pty
… it's the quote symbol on your require line, `require ‘
watir
’`. In Ruby, this *needs* to be either a standard `'` or…/syntax/literals_rdoc.html#label-Percent+Strings), in the`require %q{
watir
}` style, but in more than 14 years of Ruby I… statement. In short, you'll have more luck with `require '
watir
'`.
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by rproffitt
My first checks would be to read a few priors at https://www.google.com/search?q=require+‘
watir
’ This tells me that more work is required to get your
watir
working. You write you researched this but didn't share your research method. I don't have a Ruby setup today so it may be a while till I can try your code.
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by mattyd
I installed
Watir
yesterday. The docs seem a bit unclear as to what … did was manual (at that point) and we used Ruby/
Watir
to essentially simplify a few set-up steps for our…
Execute a php script in ruby
Programming
Software Development
8 Years Ago
by Webville312
…, $launch_time, "PASS"); $string_to_write.= "Test passed.
Watir
returned output: ".strtoupper($outp)."\n"; } else { … + paypal_email p " paypal_pwd:" + paypal_pwd # # Start
watir
/selenium require "selenium-webdriver" p "Running "…
Accessing URL Links
Programming
Web Development
15 Years Ago
by mattyd
… using (real links, passwords, etc altered: [CODE] 1 require '
watir
' 2 ie =
Watir
::IE.new 3 ie.maximize 4 ie.goto('https…
Count Object On Page
Programming
Web Development
16 Years Ago
by atulsweet82
hi how can count a text , image , button etc on a paticular page with
watir
. plzzz help me thanks & regards atul
Re: Count Object On Page
Programming
Web Development
16 Years Ago
by pty
[QUOTE=atulsweet82;343740]hi how can count a text , image , button etc on a paticular page with
watir
. plzzz help me thanks & regards atul[/QUOTE] [code] ie.form(:index, 1).images.count [/code] Can't test it don't have a Windows machine handy
Re: Urgent piece of advice is needed!
Community Center
15 Years Ago
by pty
Sounds like [url=http://wtr.rubyforge.org]
watir
[/url] will do what you want. [url=http://wiki.openqa.org/display/WTR/Example+Test+Case]Here[/url] is an example of how to set up a google search
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by mattyd
rproffitt Thank you for your reply. Research method entailed reading Ruby docs, searching for info regarding the error message, Ruby groups, etc. All the info I found was quite vague.
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by rproffitt
Can you share your install routine, host OS (rarely matters).
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by mattyd
I used rubyinstaller 2.2.6 > https://rubyinstaller.org/ My OS is Win7/ 64
Re: Ruby/Watir - <Main> undefined local variable or method
Programming
Web Development
6 Years Ago
by rproffitt
I see I asked about your install method and I used that to see what's up. It appears the setup was more than you wrote about. Let's try again tomorrow. I have a clean Windows 10 PC that I can test this on late tomorrow. I need your install method so I can check it out.
Re: Count Object On Page
Programming
Web Development
16 Years Ago
by amithasija
u can also use form.elements.length in your script to get the total no of elements on ur page provided all elements must be in same form.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC