@@ -856,9 +856,6 @@ public function _saveElementScreenshot($selector, string $filename): void
856856 }
857857 }
858858
859- /**
860- * @param string|array|WebDriverBy $locator
861- */
862859 public function _findElements ($ locator ): array
863860 {
864861 return $ this ->match ($ this ->webDriver , $ locator );
@@ -1160,10 +1157,6 @@ public function dontSeeInPageSource(string $text): void
11601157 );
11611158 }
11621159
1163- /**
1164- * @param string|array|WebDriverBy $link
1165- * @param string|array|WebDriverBy|null $context
1166- */
11671160 public function click ($ link , $ context = null )
11681161 {
11691162 $ page = $ this ->webDriver ;
@@ -1408,53 +1401,33 @@ public function grabFromCurrentUrl($uri = null)
14081401 return $ matches [1 ];
14091402 }
14101403
1411- /**
1412- * @param string|array|WebDriverBy $checkbox
1413- */
14141404 public function seeCheckboxIsChecked ($ checkbox )
14151405 {
14161406 $ this ->assertTrue ($ this ->findField ($ checkbox )->isSelected ());
14171407 }
14181408
1419- /**
1420- * @param string|array|WebDriverBy $checkbox
1421- */
14221409 public function dontSeeCheckboxIsChecked ($ checkbox )
14231410 {
14241411 $ this ->assertFalse ($ this ->findField ($ checkbox )->isSelected ());
14251412 }
14261413
1427- /**
1428- * @param string|array|WebDriverBy|WebDriverElement $field
1429- * @param $value
1430- */
14311414 public function seeInField ($ field , $ value )
14321415 {
14331416 $ els = $ this ->findFields ($ field );
14341417 $ this ->assert ($ this ->proceedSeeInField ($ els , $ value ));
14351418 }
14361419
1437- /**
1438- * @param string|array|WebDriverBy|WebDriverElement $field
1439- * @param $value
1440- */
14411420 public function dontSeeInField ($ field , $ value )
14421421 {
14431422 $ els = $ this ->findFields ($ field );
14441423 $ this ->assertNot ($ this ->proceedSeeInField ($ els , $ value ));
14451424 }
14461425
1447- /**
1448- * @param string|array|WebDriverBy $formSelector
1449- */
14501426 public function seeInFormFields ($ formSelector , array $ params )
14511427 {
14521428 $ this ->proceedSeeInFormFields ($ formSelector , $ params , false );
14531429 }
14541430
1455- /**
1456- * @param string|array|WebDriverBy $formSelector
1457- */
14581431 public function dontSeeInFormFields ($ formSelector , array $ params )
14591432 {
14601433 $ this ->proceedSeeInFormFields ($ formSelector , $ params , true );
@@ -1581,10 +1554,6 @@ protected function proceedSeeInField(array $elements, $value): array
15811554 ];
15821555 }
15831556
1584- /**
1585- * @param string|array|WebDriverBy|WebDriverElement $select
1586- * @param string|array|WebDriverBy $option
1587- */
15881557 public function selectOption ($ select , $ option ): void
15891558 {
15901559 $ el = $ this ->findField ($ select );
@@ -1871,9 +1840,6 @@ protected function matchCheckables($selector): array
18711840 return $ els ;
18721841 }
18731842
1874- /**
1875- * @param string|array|WebDriverBy|WebDriverElement $option
1876- */
18771843 public function checkOption ($ option ): void
18781844 {
18791845 $ field = $ this ->findCheckable ($ this ->webDriver , $ option );
@@ -1888,9 +1854,6 @@ public function checkOption($option): void
18881854 $ field ->click ();
18891855 }
18901856
1891- /**
1892- * @param string|array|WebDriverBy|WebDriverElement $option
1893- */
18941857 public function uncheckOption ($ option ): void
18951858 {
18961859 $ field = $ this ->findCheckable ($ this ->getBaseElement (), $ option );
@@ -1905,9 +1868,6 @@ public function uncheckOption($option): void
19051868 $ field ->click ();
19061869 }
19071870
1908- /**
1909- * @param string|array|WebDriverBy|WebDriverElement $field
1910- */
19111871 public function fillField ($ field , $ value ): void
19121872 {
19131873 $ el = $ this ->findField ($ field );
@@ -1963,10 +1923,6 @@ public function type(string $text, int $delay = 0): void
19631923 sleep ($ delay );
19641924 }
19651925
1966- /**
1967- * @param string|array|WebDriverBy $field
1968- * @param string $filename
1969- */
19701926 public function attachFile ($ field , $ filename )
19711927 {
19721928 $ el = $ this ->findField ($ field );
@@ -2008,9 +1964,6 @@ protected function getVisibleText(): ?string
20081964 return '' ;
20091965 }
20101966
2011- /**
2012- * @param string|array|WebDriverBy $cssOrXPathOrRegex
2013- */
20141967 public function grabTextFrom ($ cssOrXPathOrRegex )
20151968 {
20161969 $ els = $ this ->match ($ this ->getBaseElement (), $ cssOrXPathOrRegex , false );
@@ -2025,19 +1978,12 @@ public function grabTextFrom($cssOrXPathOrRegex)
20251978 throw new ElementNotFound ($ cssOrXPathOrRegex , 'CSS or XPath or Regex ' );
20261979 }
20271980
2028- /**
2029- * @param string|array|WebDriverBy $cssOrXpath
2030- * @param string|null $attribute
2031- */
20321981 public function grabAttributeFrom ($ cssOrXpath , $ attribute ): ?string
20331982 {
20341983 $ el = $ this ->matchFirstOrFail ($ this ->getBaseElement (), $ cssOrXpath );
20351984 return $ el ->getAttribute ($ attribute );
20361985 }
20371986
2038- /**
2039- * @param string|array|WebDriverBy $field
2040- */
20411987 public function grabValueFrom ($ field ): ?string
20421988 {
20431989 $ el = $ this ->findField ($ field );
@@ -2050,12 +1996,6 @@ public function grabValueFrom($field): ?string
20501996 return $ el ->getAttribute ('value ' );
20511997 }
20521998
2053- /**
2054- * @param string|array|WebDriverBy$cssOrXpath
2055- * @param string|null $attribute
2056- * @return array|null[]|string[]
2057- * @throws ModuleException
2058- */
20591999 public function grabMultiple ($ cssOrXpath , $ attribute = null ): array
20602000 {
20612001 $ els = $ this ->match ($ this ->getBaseElement (), $ cssOrXpath );
@@ -2172,10 +2112,6 @@ public function seeNumberOfElementsInDOM($selector, $expected)
21722112 }
21732113 }
21742114
2175- /**
2176- * @param string|array|WebDriverBy $selector
2177- * @param string $optionText
2178- */
21792115 public function seeOptionIsSelected ($ selector , $ optionText ): void
21802116 {
21812117 $ el = $ this ->findField ($ selector );
@@ -2197,10 +2133,6 @@ public function seeOptionIsSelected($selector, $optionText): void
21972133 }
21982134 }
21992135
2200- /**
2201- * @param string|array|WebDriverBy $selector
2202- * @param $optionText
2203- */
22042136 public function dontSeeOptionIsSelected ($ selector , $ optionText ): void
22052137 {
22062138 $ el = $ this ->findField ($ selector );
0 commit comments