File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ public function querySelector(string $selector): ?Element
116116 *
117117 * @param array<string, string|bool> $params
118118 */
119- public function getByRole (string $ role , array $ params ): ?Element
119+ public function getByRole (string $ role , array $ params = [] ): ?Element
120120 {
121121 return $ this ->querySelector (Selector::getByRoleSelector ($ role , $ params ));
122122 }
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public function querySelector(string $selector): ?Element
133133 *
134134 * @param array<string, string|bool> $params
135135 */
136- public function getByRole (string $ role , array $ params ): ?Element
136+ public function getByRole (string $ role , array $ params = [] ): ?Element
137137 {
138138 return $ this ->frame ->getByRole ($ role , $ params );
139139 }
You can’t perform that action at this time.
0 commit comments