If you use 

browser=Selenium::WebDriver.new :chrome

Then you need to use 

browser. find_element(:id,'email').send_keys "('em...@email.com')"

If you use

browser=Watir::Browser.new

browser.text_field(:id,'email').set "('em...@email.com')"


On Friday, February 3, 2017 at 11:49:53 PM UTC+5:30, christina wrote:
>
> Hi all!
>
>
> Please can one tell me how do i fill in the email and password when te 
> application is angular based
>
>
>
> I try to use this
>
>
> #this is from cucumber and cheese
> require 'rubygems'
> require 'watir-ng'
>
>
> @browser = Selenium::WebDriver.for :chrome
> @browser.navigate.to  "https://apps.vizlly.com/dms-angular/#/login";
> sleep 3
> @browser.text_field(:id => 'email').flash
>
> @browser.text_field(:id => 'email').set('em...@email.com <javascript:>')
>
>
>
> But I can load the page but I can't write into the text fields.
> Can we access elements using model or the way protractor does?
>
> This is the application link
>
> https://apps.vizlly.com/dms-angular/#/login
>
>
> I do appreciate.
> I try to see if I can move to watir vs protractor.
>
>
> Kind regards and I appreciate a lot your time!
> Cristina
>

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