Answer the question
In order to leave comments, you need to log in
How to change proxy in Selenium Opera Python?
How to change proxy in SElenium using Opera browser in Python?
Answer the question
In order to leave comments, you need to log in
#text-6 {
background: #ecf3f5;
border-radius: 5px;
border-bottom: #015a82 solid 3px;
border-top: #015a82 solid 3px;
padding-left: 7px;
padding-bottom: 20px;
margin-bottom: 10px;
width: 100%;
box-sizing: border-box;
margin: auto;
}
ничего не смущает?
margin: auto перезаписывает любой маргин который вы устанавливаете выше
from selenium import webdriver
from selenium.webdriver.common.proxy import Proxy, ProxyType
prox = Proxy()
prox.proxy_type = ProxyType.MANUAL
prox.http_proxy = "ip_addr:port"
prox.socks_proxy = "ip_addr:port"
prox.ssl_proxy = "ip_addr:port"
capabilities = webdriver.DesiredCapabilities.CHROME
prox.add_to_capabilities(capabilities)
driver = webdriver.Chrome(desired_capabilities=capabilities)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question