2013-11-25 22 views
0

我正在使用Xebium和FitNesse爲客戶構建概念驗證演示。我在Firefox的Selenium IDE中嘗試了一些東西,然後使用Xebium格式化程序將命令轉換爲FitNesse Wiki語法,並將其合併到我的Wiki頁面集中。Xebium FitNesse頁面需要字符串轉義嗎?無法獲得verifyCssCount工作

我不能得到這個在FitNesse中/ Xebium工作:

| check | is | verifyCssCount | on | css=#new-todo[placeholder='What needs to be done?'] | 1 | 

我獲得以下響應(它抱怨的 'CSS = ...' 字符串格式化):

Execution of command failed: An invalid or illegal string was specified Command duration or 
timeout: 10 milliseconds Build info: version: '2.35.0', revision: 
'8df0c6bedf70ff9f22c647788f9fe9c8d22210e2', time: '2013-08-17 12:46:41' System info: os.name: 
'Mac OS X', os.arch: 'x86_64', os.version: '10.9', java.version: '1.6.0_65' Session ID: 
9a90de82-a9ca-fa41-9708-c206804ee041 Driver info: org.openqa.selenium.firefox.FirefoxDriver 
Capabilities [{platform=MAC, acceptSslCerts=true, javascriptEnabled=true, 
browserName=firefox, rotatable=false, locationContextEnabled=true, version=21.0, 
cssSelectorsEnabled=true, databaseEnabled=true, handlesAlerts=true, 
browserConnectionEnabled=true, nativeEvents=false, webStorageEnabled=true, 
applicationCacheEnabled=true, takesScreenshot=true}]] 

有人知道我在做什麼錯嗎?如果字符串應該被轉義(在[,]和?字符前面嘗試反斜線,但這沒有幫助)。

我在Xebium上找不到太多的文檔,所以我不得不問一下優秀的社區:-) 希望somone能提供幫助,永遠感激不盡!

最好的問候,
David K製作
瑞典

回答

0

我找到了答案:-)

或者用 「的XPath」 或在其名稱中 「的CSS」 的硒命令,假設參數的XPath或Css定位器(分別)。因此,「的XPath =」和參數字符串的「CSS =」部分是多餘的,必須省略:現在

| check | is | verifyCssCount | on | #new-todo[placeholder='What needs to be done?'] | 1 | 

,它的作品!

希望這可以幫助別人。

最好的問候,
大衛

+0

我會接受19小時我自己的答案......不許再說吧。 –