1

I have searched for such a topic but didn't find a clue to start with. I am using selenium in VBA and I have some numbers which I will search in column A Is it possible to divide those numbers into two parts (example: the numbers are 100 so it would be divided into two parts and each part has 50 numbers). Maybe an array to hold the numbers. This is not the problem (I am just imagining the scenario) Then open two drivers or bots and each bot deals with each part

Private bot1 As New Selenium.ChromeDriver
Private bot2 As New Selenium.ChromeDriver

How to make both bots run at the same time in VBA?

YasserKhalil
  • 9,138
  • 7
  • 36
  • 95

1 Answers1

2

You can always initiate two bots as:

Private bot1 As New Selenium.ChromeDriver
Private bot2 As New Selenium.ChromeDriver

shift the focus to either of the instances depending on your requirement as follows:

  • Focusing on bot1:

    bot1.ExecuteScript "window.focus();"
    
  • Focusing on bot2:

    bot2.ExecuteScript "window.focus();"
    
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352