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...
there is an access data table with nearly 200000 pieces of data. I don t know when to modify it manually. The format of is as follows: there are fields in the Content table Chinese name: Xiao Li English name: xiaoli gender: male Chinese name: X...
The code iterates one line at a time, expecting the tell method to return the position of the current pointer. But what is actually returned is the last location of the entire document; Please help me to see what the problem is? My Daily.txt Good mo...
1: { name: A , age: 10 } 2: [{ id:1, name: A , 1name book: xxx }, { id:2, name: A , book: xxx }] name A book are all stored in Table 2. How to deal with a table structure like this? ...
webpack is packaged, jquery is placed in front of bootstrap, or error is reported. Why? js $( -sharplastPageModal ).modal(); Local html <script src=".. lib jquery.js">< script> <script src=".. lib bootstrap.js&qu...
delete the historical data in the table and retain only the data of the most recent quarter before deletion "count" : 1379345, -sharp "size" : 3823247286, -sharp "nindexes" : 4, "totalIndexSize" : 86913024, -...