有没有一种方法可以单击一个坐标而不用Selenium在网站上找到元素?

时间:2020-04-26 12:25:01

标签: python selenium click

我正在使用Selenium和Python。是否可以在网站上用光标单击坐标而不找到var score = localStorage.getItem("scorevalue"); var player = localStorage.getItem("tplayervalue"); for(let i = 1; i < 8; i++){ if(player === "" || player === null){ break; } if(document.getElementById("score" +i).innerText === ""){ document.getElementById("score" +i).innerText = player+ ": " +score; break; } if(document.getElementById("score" +i).innerText !== player+ ": " +score){ var j = i + 1; document.getElementById("score" +j).innerText = player+ ": " +score; break; } } 之类的元素?

0 个答案:

没有答案