File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -352,15 +352,15 @@ public static function elementSelectionStateToBe(
352352 if ($ element_or_by instanceof WebDriverElement) {
353353 return new WebDriverExpectedCondition (
354354 function ($ driver ) use ($ element_or_by , $ selected ) {
355- return $ element_or_by ->isSelected === $ selected ;
355+ return $ element_or_by ->isSelected () === $ selected ;
356356 }
357357 );
358358 } else if ($ element_or_by instanceof WebDriverBy) {
359359 return new WebDriverExpectedCondition (
360360 function ($ driver ) use ($ element_or_by , $ selected ) {
361361 try {
362362 $ element = $ driver ->findElement ($ element_or_by );
363- return $ element ->isSelected === $ selected ;
363+ return $ element ->isSelected () === $ selected ;
364364 } catch (StaleElementReferenceException $ e ) {
365365 return null ;
366366 }
You can’t perform that action at this time.
0 commit comments