Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Selenium IDE测试页面,并希望执行页面中已有的方法。我已经尝试过getEval(window.name.space.function()),但它只是返回window.name未定义。这可能吗?
getEval(window.name.space.function())
window.name
有一个 getCurrentWindow() 函数,由于深不可测的原因,它只允许您访问“安全”属性(这应该防止什么?人们恶意地对其他人的网站进行路过测试?)。较新的版本提供了解决这些问题的 getUserWindow() 函数。有关详细信息,请参阅此博客条目和此问题。