我正在使用robotframework和selenium2library测试一个基于extjs的web应用程序,但是我找不到一些包含在表格组件中的元素。selenium2library有一个叫做Execute javascript的关键字,所以我想知道如何执行javascript,例如我如何执行js代码:
var a=document.getElementById
在使用自定义的robotframework关键字时,我遇到了一些让selenium2library在失败时触发运行的问题。我用Python语言编写了一个关键字,它的工作方式与我预期的一样,但在引发AssertionError失败时,不会调用Selenium2Library的Run_On_Failure关键字。compare_text(self, actualString, expectedString):
"""Compares two strings of text, this differs from the <em