0

変数に空白値が格納されているかどうかを確認したい。'' または "" または NULL または null と比較してみましたが、うまくいきません。

4

2 に答える 2

1

以下のソリューションを試すことができます

storeValue  |  element  |  test
store       |           |  j  (blank value)
gotoIf      |  storedVars['test']==storedVars['j']  |  true
getEval     |  alert("test Variable Value is not blank")
gotolabel   |  finish
label       |  true
getEval     |  alert("test Variable Value is blank")
label       |  finish
于 2012-07-11T11:57:56.687 に答える
0

You can also use verifyEval command for this. Try following script,

verifyEval | this.page().findElement("id=gbqfq").value == '' | true

于 2012-07-11T11:00:34.483 に答える