Geb给org.openqa.selenium.InvalidSelectorException:

时间:2017-02-20 13:27:20

标签: selenium cucumber appium geb pageobjects

我已将geb核心更新为编译“org.gebish:geb-core:0.10.0”从那时起我的错误

org.openqa.selenium.InvalidSelectorException: 
Locator Strategy 'css selector' is not supported for this session (WARNING: The server did not provide any stacktrace information)

代码

static content = {
        welcomeMessage {$("welcome_message")} // here occurs error org.openqa.selenium.InvalidSelectorException:  
    }

“$(”welcome_message“)”是我找不到的元素,但它显示在屏幕上。我遵循geb语法它看起来一样。

我尝试使用以下语法,但仍然无效

  1. welcomeMessage {$(“。welcome_message”)}
  2. welcomeMessage {$(“welcome_message”)}
  3. welcomeMessage {$(“#welcome_message”)}
  4. welcomeMessage {$(“ - #welcome_message”)}

0 个答案:

没有答案