I am using Selenium with Chromedriver via VBA. Sometimes when i click on a button another tab opens. So according to this older question Selenium Basic VBA focus on new tab.