chrome webdriver download address: http://chromedriver.storage.googleapis.com/index.html Note that it corresponds to the kernel version of the domestic browser (the Wish browser 80.0.3987.163 kernel can use 80.0.3987.106 webdriver) as long as the browser’s The kernel version is not lower than the version of webdriver. The minimum version on Nuget is 71, so QQ browser cannot be controlled by C#, and QQ only has version 70 kernel.
If you want to open the browser first and then use selenium to control, you need to add startup parameters to the browser:
twinkstar.exe --remote-debugging-port=9222
Python calls the initialization of the existing Star Wish browser
The JS native method of Flash zooming is Zoom(percentage)where percentagethe reciprocal of the magnification is multiplied by 100. For example, zooming 4 times is 1/4*100=25.
After Flash zooming, the JS native method to move the field of view is Pan(x_position,y_position,mode). x_positionThe parameter is the number of moving abscissas, and the negative y_positionparameter is the number of moving ordinates. The negative modeparameter is temporarily unclear. First fill in 1 to indicate the unit of coordinates, but when the value is "0", the number of pixels is the unit When it is "1", the unit is percentage.
The JS native method to control the transparency of the entire Flash. TSetProperty("_root",6,50) The last parameter is the opacity from 0 to 100, 0 means no display, and 100 means completely opaque.
In summary, the operations that python needs to perform are (cut the high-definition picture of the Xiaohuaxian page tour selection interface (the one in the middle))