Selenium IDE command for input type hidden

最后都变了- 提交于 2019-12-11 08:32:41

问题


am new to selenium and while recording in selenium IDE it is not recording drop - down list am posting html code of it.

If the IDE is not recording the event, issue such as the element being defined as hidden.

Thanks for your help :)

<input type="hidden" name="roleSpecification.industries.id" value="" />
<select name="roleSpecification.industries.id" size="3" data-placeholder="Any"   class="test chzn-select" multiple="multiple" id="roleSpecification_industries_id" >
<option value="1">Accounting</option>
<option value="2">Architecture &amp; Planning</option>
<option value="3">Arts</option>
</select>

回答1:


From Selenium Reference.

storeVisible ( locator, variableName )

Determines if the specified element is visible. An element can be rendered invisible by setting the CSS "visibility" property to "hidden", or the "display" property to "none", either for the element itself or one if its ancestors. This method will fail if the element is not present.

Arguments:

  • locator - an element locator

  • variableName - the name of a variable in which the result is to be stored.

Returns:

true if the specified element is visible, false otherwise

Related Assertions, automatically generated:

  • assertVisible ( locator )
  • assertNotVisible ( locator )
  • verifyVisible (locator )
  • verifyNotVisible ( locator )
  • waitForVisible ( locator )
  • waitForNotVisible ( locator )

You can use verifyVisible(css=input[name="roleSpecification.industries.id"])



来源:https://stackoverflow.com/questions/13724760/selenium-ide-command-for-input-type-hidden

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!