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.
我来自 QuickTest Pro 背景,我可以使用 .object 方法访问任何元素的 DOM 对象。我想知道 Selenium RC 中的等价物是什么。
你当然可以。真正的问题是:你想用它做什么?查看 getEval() 命令。它可以评估任何 JavaScript 并以字符串格式返回结果。这意味着您无法将完整的 DOM 对象返回到 Java/C#/perl/etc,但您可以取回它的属性(即:innerHTML 等)。