New issue
Advanced search Search tips

Issue 781921 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

chromedriver 2.33 setNetworkConditions doesn't work

Reported by nowak2...@poczta.onet.pl, Nov 6 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0

Steps to reproduce the problem:
1. Download chromedriver 2.33
2. In Python virtualenv install selenium-3.7.0 (latest)
3. Execute in Python shell:

-----------
from selenium import webdriver
browser=webdriver.Chrome()
# Chrome window appears.
# You can now open DevTools with the Network tab see the connection throttling status.

browser.set_network_conditions(offline=True, latency=9999999, throughput=0)
browser.get_network_conditions()
{u'latency': 9999999, u'offline': True, u'download_throughput': 0, u'upload_throughput': 0}

browser.get('http://www.google.com')
-----------

What is the expected behavior?
"Offline" switch should be enabled, and the website should not load at all.

What went wrong?
The "Offline" checkbox has not been checked by set_network_conditions, and the website loads from the Internet. The network conditions set by the webdriver are completely ignored.

Did this work before? N/A 

Chrome version: 64.0.3253.3 (Official Build) dev (64-bit)  Channel: stable
OS Version: Ubuntu 17.04
Flash Version: Shockwave Flash 27.0 r0

It also doesn't work on Google Chrome 62.0.3202.75.
Maybe it is connected to #728451 ?
 
Components: Tests>WebDriver

Comment 2 by kozy@chromium.org, Nov 6 2017

Owner: allada@chromium.org
Status: Assigned (was: Unconfirmed)
This is a log file generated when running above "browser.set_network_conditions" command.
svc.log
15.2 KB View Download
Owner: johnchen@chromium.org
Status: WontFix (was: Assigned)
Some ChromeDriver features doesn't work properly when the DevTools tab is open. They both use the same underlying mechanism to control the browser, and sometimes they can overwrite each other's settings. Please try using ChromeDriver setNetworkConditions without opening DevTools tab.

Sign in to add a comment