java web 选项卡,使用带有Java的Selenium WebDriver在浏览器选项卡之间切换
Ineedtoswitchbetweenthebrowsertabs,usedthefollowingcode,driver.findElement(By.cssSelector("body")).sendKeys(Keys.CONTROL+"\t");Itwasworkingproperlysometimesonly,butsometimesitisshowinganexception.Cana