Working on my first ever Ruby on Rails project - a webscraper using Watir.
First things first, I am trying to log into a website, but Watir isn't putting in the usernames and passwords.
When it gets to the log in page, nothing gets typed. I've tried removing the username and password inputs just to see if it clicks the button and it still won't even click the button.
How can I get the text to go in the username/password fields and then have the button clicked?
I'm totally brand new to this sort of thing, so sorry if I'm not asking the question in an easily answerable way,
Here is what I have so far:
require 'watir'
require 'selenium-webdriver'
browser = Watir::Browser.new :safari #opens Safari
browser.window.maximize
browser.goto 'go.crmls.org'
browser.link(title: 'MLS Dashboard Login').click
browser.text_field(data_ph: 'User ID').set 'username'
browser.text_field(data_ph: 'Password').set 'password'
browser.button(id: 'loginbtn').click
Here is what I have in my gem file:
gem 'watir', '~> 6.16', '>= 6.16.5'
gem 'selenium-webdriver', '~> 3.6'
Everything is installed through Terminal and Bundle Install was used as well.