pageLoadingStrategy with FirefoxDriver

430 views
Skip to first unread message

soph...@gmail.com

unread,
Sep 10, 2014, 4:05:35 PM9/10/14
to seleniu...@googlegroups.com
While doing a search for an issue I was having, I came across WebDriver spec for pageLoadingStrategy - https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#page-load-strategies-1

This appears in the changelog for FirefoxDriver 2.40.0 as being implemented.

As part of DesiredCapabilties, I add setCapability(CapabilityType.PAGE_LOADING_STRATEGY, 'none'). I can't tell if anything has changed as a result of the new capability. If I force an error, I get the following as part of the stacktrace:
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{platform=WINDOWS, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, webStorageEnabled=true, nativeEvents=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=32.0}]

Am I doing something wrong? Is this capability not truly implemented?

Thanks
--Chung

Krishnan Mahadevan

unread,
Sep 11, 2014, 3:00:21 AM9/11/14
to Selenium Users

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bb295f41-4047-4010-a33d-b2ba4ceee6e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mohamad Ali Makieh

unread,
Sep 11, 2014, 9:48:02 AM9/11/14
to seleniu...@googlegroups.com

Hello Chung,

If you still having a problem in setting your Capability, I invite you to visit the wiki page of Selenium WebDriver : https://code.google.com/p/selenium/wiki/DesiredCapabilities
and look to the FireFox Profile Settings section where you can find webdriver.load.strategy .

There is two possible values to set in your driver instance : unstable, conservative. Defaults to conservative.
Good luck !
Mohamad

soph...@gmail.com

unread,
Sep 15, 2014, 2:32:09 PM9/15/14
to seleniu...@googlegroups.com
Thanks for the two previous replies. webdriver.load.strategy no longer worked for what I was doing when I attempted to update to a version of Selenium past 2.39.0. It was still workable until Firefox32, when URLs stopped loading.

I'm not sure if I was entirely doing something wrong with this parameter, or not. But after updating to Firefox 32.0.1, and retrying this configuration, I'm back to the functionality I had before. So, with 2.43.1 and Firefox 32.0.1, setting CapabilityType.PAGE_LOADING_STRATEGY to 'none' gives me the seemingly same functionality I had when setting 'webdriver.load.strategy' with 2.39.0.

For reference: https://dvcs.w3.org/hg/webdriver/raw-file/tip/webdriver-spec.html#page-load-strategies-1

Thanks,
--Chung
Reply all
Reply to author
Forward
0 new messages