Yeah, that would be good idea. Our waiting methodology is what we differ
tremendously from directly using Selenium. When they use this driver level
wait, that would hinder WATIR to do its job as expected.

On Wed 8 Aug, 2018, 12:14 PM Titus Fortner, <[email protected]> wrote:

> Oh wow, implicit_wait of 300 will likely cause issues even if you aren't
> using Watir. Definitely don't need it with Watir. I kind of want to change
> the Selenium code to expose the existing implicit wait value in the driver
> just so Watir can check for it and throw big warning flags saying not to
> set it. :)
>
>
> On Tuesday, August 7, 2018 at 10:51:04 PM UTC-7, rajagopalan madasami
> wrote:
>>
>> Hi you don't have to use implicit wait while you use WATIR , that's
>> needed if you use pure selenium binding. If you use implicit wait, then you
>> can't know the element status immediately. Don't use implicit wait, WATIR
>> has its own waiting strategy.
>>
>> On Wed 8 Aug, 2018, 11:16 AM NaviHan, <[email protected]> wrote:
>>
>>> Hi Titus and Justin
>>>
>>> "wait_for_ajax" did the job :-) I used it only at places where the
>>> spinner loading caused problem. Im curios where to put the code blok Titus
>>> provided in the hooks.rb file
>>> My hooks look like this.
>>>
>>> @Justin, Im curios to know why you asked if Im sure that the timing
>>> issue was resolved using the jQuery statement. Are these kind of issues
>>> caused by something else?
>>>
>>>
>>> require 'rubygems'
>>> require 'page-object'
>>> require 'watir'
>>> require 'page-object/page_factory'
>>> require 'log4r'
>>> require 'cucumber'
>>> require 'selenium-webdriver'
>>> require 'fig_newton'
>>>
>>>
>>>
>>>
>>> Before do|scenario|
>>>
>>>   case ENV["TEST_ENV"]
>>>
>>>     when 'dev'
>>>       begin
>>>         ENV['HTTP_PROXY'] = ENV['http_proxy'] = nil
>>>         @browser = Watir::Browser.new :chrome
>>>         @browser.window.maximize
>>>         @browser.driver.manage.timeouts.implicit_wait = 300
>>>         @browser.cookies.clear
>>>         @browser.driver.manage.window.maximize
>>>         PageObject.default_element_wait=(10)
>>>         FigNewton.load( "#{ENV["TEST_ENV"]}" + ".yml")
>>>         PageObject.javascript_framework = :jquery
>>>       end
>>>     when 'dev04'
>>>       begin
>>>         ENV['HTTP_PROXY'] = ENV['http_proxy'] = nil
>>>         @browser = Watir::Browser.new :chrome
>>>         @browser.window.maximize
>>>         @browser.driver.manage.timeouts.implicit_wait = 300
>>>         @browser.cookies.clear
>>>         @browser.driver.manage.window.maximize
>>>         PageObject.default_element_wait=(10)
>>>         FigNewton.load( "#{ENV["TEST_ENV"]}" + ".yml")
>>>         PageObject.javascript_framework = :jquery
>>>       end
>>>     else
>>>       ENV['HTTP_PROXY'] = ENV['http_proxy'] = nil
>>>       @browser = Watir::Browser.new :chrome
>>>       @browser.window.maximize
>>>       @browser.driver.manage.timeouts.implicit_wait = 300
>>>       @browser.cookies.clear
>>>       @browser.driver.manage.window.maximize
>>>       PageObject.default_element_wait=(10)
>>>       FigNewton.load( "dev04.yml")
>>>       PageObject.javascript_framework = :jquery
>>>   end
>>>
>>> end #before scenario<span style="color:#000" 
>>> class="m_-3767466441214720462styled-by-p
>>>
>>> --
> --
> Before posting, please read
> https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
>
> 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.
>

-- 
-- 
Before posting, please read 
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
 
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