I use watir webdriver gem with chromedriver. I know (https://code.google.com/p/chromedriver/issues/detail?id=9#c25) that in new version 2.1 of chromedriver there is a special page load timeout. How can I set it from ruby code?
There is a page load timeout that specifies how long to wait for a page to load before throwing an exception.
This is set within the underlying selenium-webdriver object:
browser.driver.manage.timeouts.page_load = 10 #seconds
For example, an exception will now be thrown when a page does not load fast enough:
browser = Watir::Browser.new :chrome
browser.driver.manage.timeouts.page_load = 0
browser.goto 'http://www.google.ca'
#=> Selenium::WebDriver::Error::TimeOutError
Related
Hello I'm trying to do web scraping with the python module requests-html to handle dynamic content on the page https://www.monster.com/jobs/search?q=Software+Engineer&where=. My code is:
from requests_html import HTMLSession
url = 'https://www.monster.com/jobs/search?q=Software+Engineer&where='
session = HTMLSession()
response = session.get(url)
response.html.render()
but when I run response.html.render() I get this error
OSError: [WinError 14001] The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
The first time I ran render() I got
[W:pyppeteer.chromium_downloader] start chromium download.
Download may take a few minutes.
[W:pyppeteer.chromium_downloader]
chromium download done.
[W:pyppeteer.chromium_downloader] chromium extracted to: C:\Users\user\AppData\Local\pyppeteer\pyppeteer\local-chromium\588429
however the file path doesn't exist but pyppeteer is actually an installed package (pyppeteer==0.2.5). Does anyone have an idea what is going on?
You're having this issue because chromium setup failed.
You can either try to reinstall request_html or what I did was switching from the python from the Windows store to the download from the python website and then installing request_html again.
After having everything setup correctly with the downloaded python I switched back to python 3.9 from the store and everything is still working.
I'm writing app based on webkit (haskell).
I ran into unpleasant stuff: When I try to load image via 'file:', I get this console message: Not allowed to load local resource: file://resources/something.svg.
To fix it I wrote a few lines of code:
wvSettings <- webViewGetWebSettings webView
set wvSettings [webSettingsEnableUniversalAccessFromFileUris := True]
webViewSetWebSettings webView wvSettings
But the problem remained. So what should I do?
I tried to load new colorschemes in xml format from here and here
, so I copied the xmls to ~/.config/QtProject/qtcreator/styles, but when I go under Tools->Options->Text Edito->Color Scheme I get blank options under IntelliJ IDEA for each xml I added and when I choose one nothing changes. Also, when I try to change stylesheet with command
qtcreator -stylesheet=~/Downloads/stylesheet_1.css
I get
QCss::Parser - Failed to load file "~/Downloads/stylesheet_1.css"
QCss::Parser - Failed to load file "~/Downloads/stylesheet_1.css"
void DBusMenuExporterPrivate::addAction(QAction*, int): Already tracking action "Follow Symbol Under Cursor" under id 151
But the style changes nevertheless
I'm running Qt Creator 3.0.1(Qt 5.2.1) on Ubuntu 14.04LTE
This worked for me
Instead of
~/Downloads/stylesheet.css
Use absolute path
/home/username/Downloads/stylesheet.css
Cheers,
I am doing
WDS.AddExtension(Path.GetFullPath("Ghostery_v5.4.1.crx"));
I know its wrong Please let me know in jmeter how to add chromedriver extension in chrome profile
Stacktrace in jmeter
2015/01/27 12:03:52 INFO - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: Current thread name: 'xxxxx1-1', has browser: 'ChromeDriver: chrome on XP (606ce1d4c34688e1062579fd676f16a7)'
2015/01/27 12:03:52 ERROR - com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverSampler: sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function AddExtension in object com.googlecode.jmeter.plugins.webdriver.sampler.WebDriverScriptable#3a0ee49f. (<Unknown source>#1) in <Unknown source> at line number 1
xxxx
I am not sure how to work with JMeter and webdriver but in webdriver it is fairly as simple as
var chromeOptions = new ChromeOptions();
chromeOptions.AddExtension("something.crx");
On the console.. I get the following -
Usage: java [-options] class [args...]
(to execute a class)
or java [-jar] [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
include/exclude user private JREs in the version search
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-? -help print this help message
-X print help on non-standard options
-splash:<imagepath> show splash screen with specified image
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
Eventually the server doesn't start and gets stopped after time-out. The Server was working fine. However, I wanted to restart it. I stopped the server completely and tried starting it. Since then I am facing this issue.
You can check the script that is getting executed when you right click and start the server.
Check if there are any unwanted entries in the java options which does not confirm to the java command line.