Skip to content
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

[solve] How do i use the DesiredCapabilities #46

Closed
XHXIAIEIN opened this issue Nov 26, 2020 · 0 comments
Closed

[solve] How do i use the DesiredCapabilities #46

XHXIAIEIN opened this issue Nov 26, 2020 · 0 comments

Comments

@XHXIAIEIN
Copy link

XHXIAIEIN commented Nov 26, 2020

https://chromedriver.chromium.org/capabilities

caps = webdriver.DesiredCapabilities.CHROME.copy()
caps["pageLoadStrategy"] = "none"

chrome = webdriver.Chrome(options=options, desired_capabilities=caps)

[solve]

get_driver().desired_capabilities["pageLoadStrategy"] = "none"
from helium import *
from selenium.webdriver import ChromeOptions

options = ChromeOptions()
options.add_argument("--window-size=1280,1000")

start_chrome(options=options)
get_driver().desired_capabilities["pageLoadStrategy"] = "none"

go_to()
@XHXIAIEIN XHXIAIEIN changed the title How do i use the DesiredCapabilities [solve] How do i use the DesiredCapabilities Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant