is possible behat find element class name click on? looks following searched for: id|name|title|alt|value
for example, how identify element click on?
<a class="button medium round signup" href="http://link.com" data-reveal-id="signupmodal">sometext</a>
also here simple page button, has id. how come following not access button?
<button id="mybtn" type="button" onclick="myfunction()">try it</button> given on "http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_button_form" when press "mybtn"
thanks
the button can not accessed because contained in iframe, need switch iframe make button available.
you can create steps click on element type of identifier (class included), or can implement new step requires css/xpath selectors.
here can find example of method click selector.
Comments
Post a Comment