@@ -993,7 +993,7 @@ private function executeJsOnXpath(
993993 * @throws DriverException
994994 */
995995 private function executeJsOnElement (
996- $ element ,
996+ WebDriverElement $ element ,
997997 #[Language('JavaScript ' )]
998998 string $ script
999999 ) {
@@ -1070,7 +1070,7 @@ private function getWindowHandleFromName(string $name): string
10701070 * @param TWebDriverElement $element
10711071 * @throws DriverException
10721072 */
1073- private function clickOnElement ($ element ): void
1073+ private function clickOnElement (WebDriverElement $ element ): void
10741074 {
10751075 $ element ->getLocationOnScreenOnceScrolledIntoView ();
10761076 $ element ->click ();
@@ -1124,7 +1124,7 @@ private function findElement(
11241124 * @param TWebDriverElement $element
11251125 * @throws DriverException
11261126 */
1127- private function selectRadioValue ($ element , string $ value ): void
1127+ private function selectRadioValue (WebDriverElement $ element , string $ value ): void
11281128 {
11291129 try {
11301130 (new WebDriverRadios ($ element ))->selectByValue ($ value );
@@ -1143,7 +1143,7 @@ private function selectRadioValue($element, string $value): void
11431143 * @param TWebDriverElement $element
11441144 * @throws DriverException
11451145 */
1146- private function selectOptionOnElement ($ element , string $ value , bool $ multiple = false ): void
1146+ private function selectOptionOnElement (WebDriverElement $ element , string $ value , bool $ multiple = false ): void
11471147 {
11481148 try {
11491149 $ select = new WebDriverSelect ($ element );
@@ -1174,7 +1174,7 @@ private function selectOptionOnElement($element, string $value, bool $multiple =
11741174 * @param TWebDriverElement $element
11751175 * @throws DriverException
11761176 */
1177- private function deselectAllOptions ($ element ): void
1177+ private function deselectAllOptions (WebDriverElement $ element ): void
11781178 {
11791179 try {
11801180 (new WebDriverSelect ($ element ))->deselectAll ();
@@ -1193,7 +1193,7 @@ private function deselectAllOptions($element): void
11931193 * @throws DriverException
11941194 */
11951195 private function ensureInputType (
1196- $ element ,
1196+ WebDriverElement $ element ,
11971197 #[Language('XPath ' )]
11981198 string $ xpath ,
11991199 string $ type ,
@@ -1237,7 +1237,7 @@ private function jsonEncode($value, string $action, string $field): string
12371237 * @param mixed $value
12381238 * @throws DriverException
12391239 */
1240- private function setElementDomProperty ($ element , string $ property , $ value ): void
1240+ private function setElementDomProperty (WebDriverElement $ element , string $ property , $ value ): void
12411241 {
12421242 $ this ->executeJsOnElement (
12431243 $ element ,
@@ -1250,7 +1250,7 @@ private function setElementDomProperty($element, string $property, $value): void
12501250 * @return mixed
12511251 * @throws DriverException
12521252 */
1253- private function getElementDomProperty ($ element , string $ property )
1253+ private function getElementDomProperty (WebDriverElement $ element , string $ property )
12541254 {
12551255 try {
12561256 return $ this ->isW3cCompliant ()
0 commit comments