Reply To: test.selected() for multiple options

PennController for IBEX Forums Support test.selected() for multiple options Reply To: test.selected() for multiple options

#9710
Jeremy
Keymaster

Hi Nasim,

When you use and on a test command, its success and failure will be executed in response to the conjunction, not to the main test alone

One workaround is to embed each test inside a higher-up conjunction, eg:

.wait( 
    newFunction( ()=>true ).test.is(true)
        .and( getScale("scale1").test.selected().failure(
            newText("required1").css({position:"relative",bottom:"270px"}).bold().color("red").print()
        ) )
        .and( getScale("scale2").test.selected().failure(
            newText("required2").css({position:"relative",bottom:"270px"}).bold().color("red").print()
        ) )
)

Jeremy