你好!我开始学习 Selenium webdriver 并遇到了这个问题:How can I determine the xpath path of an element from a table? 我尝试在chrome中开始查看页面的源代码,然后我选择了元素并选择了获取xpath。同时,Selenium webdriver发誓找不到这个元素。我正在尝试处理这个标志: http ://samples.gwtproject.org/samples/Showcase/Showcase.html#!CwCellList
WebDriver 找不到该元素,因为 您要查找的元素在 iframe 中...
不成功你举个例子学习)
当然,你可以试试把WebDriver切换到你需要的frame,然后去寻找元素