Not sure if this helps but here is my spec_helper file. Nothing in looks
like it would cancel out the timeouts script setting but I could be missing
something.
require 'rspec'
require 'page-object'
require 'watir'
require 'require_all'
require 'webdrivers'
require 'watir_angular'
require 'pry-byebug'
require 'pry'
RSpec.configure do |config|
config.include PageObject::PageFactory
config.before(:each) do
args = [
'--ignore-certificate-errors',
'--disable-popup-blocking',
'--disable-translate',
'--disable-download-notification',
'--enable-logging',
'--v=1',
'--no-sandbox',
'--disable-infobars',
'--disable-password-generation',
'--headless'
]
args.delete('--headless') if ENV['VISIBLE']
@opts = Selenium::WebDriver::Chrome::Options.new(args: args)
prefs = {
credentials_enable_service: false
}
@opts.add_option('prefs', prefs)
Watir.default_timeout = 10 # Great for debugging, not long enough for
real tests
@browser = Watir::Browser.new(:chrome, timeouts: { script: 60_000 },
options: @opts)
WatirAngular.inject_wait(@browser)
@browser.window.resize_to 1100, 850
end
Any ideas or thoughts would be helpful.
Thank you,
Joe
On Monday, February 25, 2019 at 11:03:05 PM UTC-5, Joe Fl wrote:
>
> Hi,.
>
> I need to expand the duration of the wait on the *@page.run_asset* because
> it could take longer than 30secs for the process to complete. When I run
> the test it still fails and displays the same error as before:
>
> Failure/Error: @page.run_asset
> Selenium::WebDriver::Error::ScriptTimeOutError: script timeout: result was
> not received in 30 seconds
>
> It was explained to me that I could do this:
>
> browser = Watir::Browser.new(:chrome, timeouts: {script: 60000})
>
>
> Which I have:
>
> @browser = Watir::Browser.new(:chrome, timeouts: { script: 60_000 },
> options: @opts)
>
> The script is still exiting after 30 seconds.
>
> Any help on the would be greatly appreciated.
>
>
> Thank you,
>
> Joe
>
--
--
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.