When I do the selenium in office automation, different work need to write code to run
Every program but to open a new browser, every time need to log back in, if meet not login authentication code of the web site also calculate, can automatic input and login
If have a captcha sites, that I have to manually enter the authentication code (can't even image recognition), is very troublesome, reach the purpose of a key to the real automation
so, want to ask whether there was a way to solve my running different programs, but all call the same open browser?
Before have I seen can seem to be able to use class to solve this problem, but do not always get the point, and is given by the need to use additional tools to help with
Here also have a new problem: each program need to download the data to a different directory, how to give temporary configure the new open a browser to download address, rather than set the options and then re-open the firefox?
(the problem can be downloaded to a directory, then write code to transfer the files to the specified directory, indirect implementation download the file to a different address, therefore problems if there a way to best, didn't also it doesn't matter)
CodePudding user response:
You can refer to this, see if you want to https://blog.csdn.net/zhangenter/article/details/104488127CodePudding user response:
Thank you very much, this can indeed!