[英]Please Help me with selenium on Firefox
晚上好,我正在嘗試使用 Firefox 中的 selenium 進行一些測試,但我卡住了,我無法點擊按鈕,因為我收到了接受 cookies 的消息,這不允許我繼續測試,我不知道如何讓 selenium 接受 cookies。
這是它給我的消息: An exception occurred: ElementClickInterceptedException Message: Element <select id="tramiteGrupo[1]" class="mf-input__l" name="tramiteGrupo[1]"> is not clickable at point (470,571) because another element <a class="small cli-plugin-button cli-plugin-main-button" href="#"> obscures it
我想讓selenium接受cookies,能夠繼續輸入參數。
讓 Selenium 暫停(查看有關如何暫停的文檔,例如Thread.sleep(2000);
)在單擊“接受 cookie”按鈕之前一分鍾,然后嘗試在暫停時自己單擊按鈕。 所以你將能夠看到是什么元素阻止了它。
然后使用“page scroll up”/“page scroll down”/x/y/whatever來移動它,這樣當試圖點擊按鈕時它就不會被阻塞。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.