标签:.exe ble calendar rem div tor 属性 pat containe
分享一下:碰到 is not clickable at point 这种报错,前端这个元素中中肯定有readonly属性,通过下方js强行去掉readonly属性
js.executeScript("document.getElementsByClassName(‘ant-calendar-range-picker-input‘)[0].removeAttribute(‘readonly‘);", new Object[0]);
再通过JS强行点击
js.executeScript("arguments[0].click();", driver.findElement(By.xpath("//*[@id=‘container‘]/div/div/div[1]/div[3]/form/table[2]/tbody/tr[1]/td[2]/span/span/input[1]")));
标签:.exe ble calendar rem div tor 属性 pat containe
原文地址:https://www.cnblogs.com/TestMa/p/9663389.html