after setting the band size of the browser (800600), using the screenshot method, the picture obtained is actually larger than the browser itself. ask me, what went wrong? How to deal with from io import BytesIO from PIL import Image from selenium imp...
-sharpcoding=utf-8 from selenium import webdriver import time req_url = "http: www.baidu.com " browser = webdriver.Chrome() browser.get(req_url) browser.delete_all_cookies() cookie=[] -sharp browser.get_cookies()cookie for t in cookie: bro...
Test a login and logout. I already instantiated a webdriver, when I logged in. I want to reference this driver. in the logout case. How can I refer to this driver? Why should I refer to the driver, in the login case instead of instantiating another dr...
want to achieve selenium login, but how can not navigate to the account password input box, tried a lot of methods did not work. even this iframe is dynamic ...
this is my code I don t know how to open file or it may not be generated at all busy busy from selenium import webdriver import unittest, time import HTMLTestRunner class MyTest(unittest.TestCase): def setUp(self): self.driver = webdriver.Chro...