About 18 results for watir - Page 1

Ruby/Watir - <Main> undefined local variable or method Programming Web Development 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… help in watir Programming Web Development 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 … Re: Ruby/Watir - <Main> undefined local variable or method Programming Web Development 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 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 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… Re: Ruby/Watir - <Main> undefined local variable or method Programming Web Development 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: watir and selectlist Programming Web Development by sridharupputuri [QUOTE=dragonflyuk;681260]I'm experimenting with ruby and watir for parsing data from the web. I'm having no … watir and selectlist Programming Web Development by dragonflyuk I'm experimenting with ruby and watir for parsing data from the web. I'm having no … Execute a php script in ruby Programming Software Development 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 by mattyd … using (real links, passwords, etc altered: [CODE] 1 require 'watir' 2 ie = Watir::IE.new 3 ie.maximize 4 ie.goto('https… Re: Count Object On Page Programming Web Development 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 Count Object On Page Programming Web Development by atulsweet82 hi how can count a text , image , button etc on a paticular page with watir. plzzz help me thanks & regards atul Re: Urgent piece of advice is needed! Community Center 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 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: Ruby/Watir - <Main> undefined local variable or method Programming Web Development 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 by rproffitt Can you share your install routine, host OS (rarely matters). Re: Ruby/Watir - <Main> undefined local variable or method Programming Web Development 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: Count Object On Page Programming Web Development 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.