我已经编写了一个代码,当您单击一个链接时,css样式会发生变化,如下所示: document.getElementById("btnHome2").style.background/images/btn_navHoverArrow.png) no-repeat center bottom";这段代码运行得很好。问题是,当我刷新页面时,单击状态不再是活动状态</e
但是对于第一个项目,它运行得很好,当对第二个项目重复这个过程时,它在验证文本时失败,我得到了一个StaleElementReferenceException。public bool VerifyItemPresentInCart() //Get the cartsize and verify if one item presentIWebElement cartSize = driver.FindElement(By.CssSelector("