One of the less advertised new features in Watir is locator extensibility 
code. So far it is in use with https://github.com/p0deje/watizzle 
& https://github.com/watir/watir_css
The idea was to use it to implement the Angular specific locators. But we 
also need to figure out how to handle 
this: https://github.com/watir/watir/pull/387
Not sure if watir-ng does that 
or https://github.com/bootstraponline/angular_webdriver

These are on my list to work on, but that list keeps getting longer and 
rearranged. :)

Titus

On Friday, February 3, 2017 at 3:59:18 PM UTC-6, johnssn wrote:
>
> i think watir-ng just gives you the ability to use non-standard attributes
>
> not sure if this'll work with the new watir codebase without adjustments 
> but we're using something like this to access a custom "role" attribute 
>
> Watir::HTMLElement.attributes << :role
>
> module Watir
>   class Element
>     attribute(String, :role, 'role')
>   end
> end 
>
> To the person that asked, it should be like any other html page so stuff 
> like id should be fine
>
> ------------------------------
> *From:* Titus Fortner <[email protected] <javascript:>>
> *To:* watir-general <[email protected] <javascript:>> 
> *Sent:* Friday, February 3, 2017 10:51 AM
> *Subject:* Re: [wtr-general] angular login
>
> A couple things have changed from Cucumber & Cheese (Cheezy is in the 
> process of creating an updated version)
> watir-webdriver is now deprecated in favor of Watir 6.0. You'll want to 
> require 'watir', but that could give you a problem with `watir-ng`. I've 
> written code for multiple Angular sites using watir without watir-ng, but I 
> do not know what all it provides.
>
> With the latest version of watir you won't need sleeps. This code will 
> work:
>
> require 'watir'
>
> @browser = Watir::Browser.new :chrome
> @browser.goto "https://apps.vizlly.com/dms- angular/#/login 
> <https://apps.vizlly.com/dms-angular/#/login>"
> @browser.text_field(id: 'email').set('[email protected] <javascript:>')
>
>
> On Fri, Feb 3, 2017 at 12:43 PM, Titus Fortner <[email protected] 
> <javascript:>> wrote:
>
> You need to use:
> @browser = Watir::Browser.new
>
> On Fri, Feb 3, 2017 at 12:19 PM, c w <[email protected] <javascript:>> 
> 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 
> <https://apps.vizlly.com/dms-angular/#/login>"
> sleep 3
> @browser.text_field(:id => 'email').flash
>
> @browser.text_field(:id => 'email').set('[email protected] <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-an gular/#/login 
> <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.
>  
> [email protected] <javascript:>
> http://groups.google.com/group /watir-general 
> <http://groups.google.com/group/watir-general>
> watir-genera...@goog legroups.com <javascript:>
>
> --- 
> 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-genera...@goog legroups.com <javascript:>.
> For more options, visit https://groups.google.com/d/op tout 
> <https://groups.google.com/d/optout>.
>
>
>
> -- 
> -- 
> Before posting, please read http://watir.com/support. In short: search 
> before you ask, be nice.
>  
> [email protected] <javascript:>
> http://groups.google.com/group/watir-general
> [email protected] <javascript:>
>
> --- 
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>

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

Reply via email to