我正在制作一个基于客户端的运动鞋机器人!所以我想在 selenium 中打开多个 Web 驱动程序:
tasks = input("How many Drivers you want to open?")
然后它应该打开您输入的驱动程序数量!就像我输入 4:那么它也应该打开 4 个驱动程序,这些驱动程序应该对 XPath 搜索做一些事情。我也希望这个数量的驱动程序做同样的事情,但最重要的是打开输入的网络驱动程序的数量。
感谢你!
I have no idea where is the question ...
Please read how to ask a question ...
But I am going to try to do it anyways (will not provide the code, cuz you did not eighter and at a same time i can bet you did not even tried).
after you get the number of tasks in integer form, I would recommend you to create an array, where you will put the tasks
amount of browser references (for example, if you want 4 browsers, you will just put it in a forloop and append them to the array) and after that you will you can itterate through the array everyime you will be performing any action (its like making it for 1 browser instace, just everything will be wrapped in a forloop that will itterate the array).
I recommend you to edit the question and provide a code you have tried and describe the specific problem.