我已经在python中编写了一个脚本,并结合selenium来解析网页中的一些公司名称。我定义的选择器是完美无瑕的。然而,一旦网页开启了一个令人讨厌的ad弹出隐藏数据,并且我无法到达那里。我怎样才能解决我想要的数据。我试过在网页上切换几个iframes,但没有一个可以工作。我在脚本中使用的现有内容会引发错误,显示Message: no such element: Unable to locate
我使用的基本代码如下: Package TestSelenium;
import org.openqa.selenium.WebDriver;
public class MyFirstClass {
public static void main(String[] args) {
WebDriver driver=new FirefoxDriver();
dr