It uses `Watir.default_timeout` to determine the time of the wait.
If you want to increase it for a specific element interaction:
`b.button.wait_until(timeout: 45, &:present?).click`
On Fri, Feb 3, 2017 at 11:22 AM, Raja gopalan
wrote:
> This code
>
>
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
You need to use:
@browser = Watir::Browser.new
On Fri, Feb 3, 2017 at 12:19 PM, c w 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
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
<>
Thank you.
>>`b.button.wait_until(timeout: 45, &:present?).click`<<
This I know of!
By the way I want to ask another question, I was automating way2sms site,
It goes till the page where you set your mobile number and message, But
exactly in that textfield and date field, it's not
This code
b.button(:value,'Next').click
>
has the implicit waiting time
Is there any way I can increase the waiting time? where do I have to set
it?
--
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
watir-general@googlegroups.com
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,
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
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: