The solution below assumes the input fields should eb treated as input
elements and uses the sendkeys, I always add the hash brackest - I just
find it easier to as other attributes later.
The browser new command has a few usefull switches to maximize the browser
by removing user features (since there is no user), removes the popup that
tells you the browser is being automated, and also removes the horrid save
password feature for the session (since automation does not need or use
it). Thought you might like those since this is a login.
----
require 'watir'
browser = Watir::Browser.new :chrome, :switches => %w[--disable-infobars
--disable-gpu], :prefs=> { 'credentials_enable_service'=>false }
browser.goto("https://apps.vizlly.com/dms-angular/#/login")
browser.input({:id=>'email'}).send_keys('[email protected]')
browser.input({:id=>'password'}).send_keys('mypassword')
browser.button({:text=>'Sign In'}).click
browser.close()
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.