我正在尝试验证 xpath 表达式,如果它是真的单击元素。以下是我正在尝试执行的代码。Xpath_combined 变量返回 Boolean : true 。请帮助我更正语法或有效表达式
多变的
${xpath_combined} //div[text()='00:04:56:AC:41:F6'] AND //div[contains(text(),'Device-77')]
关键词
Run keyword if ${xpath_combined} == "true" Click Element //i[@class='fa fa-lg fa-file-text-o grow']
控制台输出错误
Evaluating expression '//div\[text()='00:04:56:AC:41:F6'\] AND //div\[contains(text(),'Gambit-77')\] == "true"' failed: SyntaxError: invalid syntax (<string>, line 1)]