当我们在法语中运行机器人测试案例时得到以下错误,但在英语中运行同样的测试案例。
InvalidSelectorException: Message: invalid selector: Unable to locate an element with the xpath expression //span[contains(@class, 'v-button-caption')and text()=Options de sélection] because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string '//span[contains(@class, 'v-button-caption')and text()=Options de sélection]' is not a valid XPath expression.
运行windows机器,改变了EOL(UTF-8,基于unix)也为文件,但不能工作。
这工作后改变和text()='Options de sélection'括在''(引号)