i have below code after opening multiple tabs i want to switch to parent tab, below isn't working, TIA
VBA Code:
Sub tabs()
bot.Get "https://www.google.com/"
For i = 1 To 3
bot.ExecuteScript "window.open('https://www.wikipedia.com')"
bot.Wait 300
bot.SwitchToNextWindow
bot.FindElementByXPath("//input[@id='searchInput']").SendKeys "ImranKhan"
bot.Wait 200
bot.FindElementByXPath("//i[@class='sprite svg-search-icon']").Click
Next i
bot.SwitchToParentFrame
'bot.SwitchToPreviousWindow
bot.FindElementByXPath("//textarea[@class='gLFyf']").SendKeys "nabeelGondal"
End Sub