-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't get page source. #6845
Comments
if your os is windows, and you use headless chrome, you have to add argument "--disable-gpu". |
I test argument "--disable-gpu","--allow-running-insecure-content","--disable-web-security","--enable-automation","--no-sandbox","--disable-infobars","--disable-dev-shm-usage","--disable-browser-side-navigation". The result is the same: |
last time I get empty page source is because the site use https and use unsafe ssl certificate. |
The result is the same: EnvironmentOS: Windows 7 |
I found that there are two errors in the chrome console log, maybe printing out it can help you. |
Please report this issue to https://bugs.chromium.org/p/chromedriver/issues/list |
🐛 Bug Report
My code is:
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
public class Test {
}
To Reproduce
The result is :
Starting ChromeDriver 2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387) on port 6315
Only local connections are allowed.
一月 12, 2019 3:40:02 下午 org.openqa.selenium.remote.ProtocolHandshake createSession
信息: Detected dialect: OSS
<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html>
Expected behavior
The page source of "http://ccc.spdb.com.cn/news/qgxhd/".
Environment
OS: Windows 7
Browser: Chrome
Browser version: 71.0.3578.98
Browser Driver version: ChromeDriver 2.45
Language Bindings version: Java 3.14.0
Selenium Grid version (if applicable):
The text was updated successfully, but these errors were encountered: