@@ -856,9 +856,6 @@ public function _saveElementScreenshot($selector, string $filename): void
856
856
}
857
857
}
858
858
859
- /**
860
- * @param string|array|WebDriverBy $locator
861
- */
862
859
public function _findElements ($ locator ): array
863
860
{
864
861
return $ this ->match ($ this ->webDriver , $ locator );
@@ -1160,10 +1157,6 @@ public function dontSeeInPageSource(string $text): void
1160
1157
);
1161
1158
}
1162
1159
1163
- /**
1164
- * @param string|array|WebDriverBy $link
1165
- * @param string|array|WebDriverBy|null $context
1166
- */
1167
1160
public function click ($ link , $ context = null )
1168
1161
{
1169
1162
$ page = $ this ->webDriver ;
@@ -1408,53 +1401,33 @@ public function grabFromCurrentUrl($uri = null)
1408
1401
return $ matches [1 ];
1409
1402
}
1410
1403
1411
- /**
1412
- * @param string|array|WebDriverBy $checkbox
1413
- */
1414
1404
public function seeCheckboxIsChecked ($ checkbox )
1415
1405
{
1416
1406
$ this ->assertTrue ($ this ->findField ($ checkbox )->isSelected ());
1417
1407
}
1418
1408
1419
- /**
1420
- * @param string|array|WebDriverBy $checkbox
1421
- */
1422
1409
public function dontSeeCheckboxIsChecked ($ checkbox )
1423
1410
{
1424
1411
$ this ->assertFalse ($ this ->findField ($ checkbox )->isSelected ());
1425
1412
}
1426
1413
1427
- /**
1428
- * @param string|array|WebDriverBy|WebDriverElement $field
1429
- * @param $value
1430
- */
1431
1414
public function seeInField ($ field , $ value )
1432
1415
{
1433
1416
$ els = $ this ->findFields ($ field );
1434
1417
$ this ->assert ($ this ->proceedSeeInField ($ els , $ value ));
1435
1418
}
1436
1419
1437
- /**
1438
- * @param string|array|WebDriverBy|WebDriverElement $field
1439
- * @param $value
1440
- */
1441
1420
public function dontSeeInField ($ field , $ value )
1442
1421
{
1443
1422
$ els = $ this ->findFields ($ field );
1444
1423
$ this ->assertNot ($ this ->proceedSeeInField ($ els , $ value ));
1445
1424
}
1446
1425
1447
- /**
1448
- * @param string|array|WebDriverBy $formSelector
1449
- */
1450
1426
public function seeInFormFields ($ formSelector , array $ params )
1451
1427
{
1452
1428
$ this ->proceedSeeInFormFields ($ formSelector , $ params , false );
1453
1429
}
1454
1430
1455
- /**
1456
- * @param string|array|WebDriverBy $formSelector
1457
- */
1458
1431
public function dontSeeInFormFields ($ formSelector , array $ params )
1459
1432
{
1460
1433
$ this ->proceedSeeInFormFields ($ formSelector , $ params , true );
@@ -1581,10 +1554,6 @@ protected function proceedSeeInField(array $elements, $value): array
1581
1554
];
1582
1555
}
1583
1556
1584
- /**
1585
- * @param string|array|WebDriverBy|WebDriverElement $select
1586
- * @param string|array|WebDriverBy $option
1587
- */
1588
1557
public function selectOption ($ select , $ option ): void
1589
1558
{
1590
1559
$ el = $ this ->findField ($ select );
@@ -1871,9 +1840,6 @@ protected function matchCheckables($selector): array
1871
1840
return $ els ;
1872
1841
}
1873
1842
1874
- /**
1875
- * @param string|array|WebDriverBy|WebDriverElement $option
1876
- */
1877
1843
public function checkOption ($ option ): void
1878
1844
{
1879
1845
$ field = $ this ->findCheckable ($ this ->webDriver , $ option );
@@ -1888,9 +1854,6 @@ public function checkOption($option): void
1888
1854
$ field ->click ();
1889
1855
}
1890
1856
1891
- /**
1892
- * @param string|array|WebDriverBy|WebDriverElement $option
1893
- */
1894
1857
public function uncheckOption ($ option ): void
1895
1858
{
1896
1859
$ field = $ this ->findCheckable ($ this ->getBaseElement (), $ option );
@@ -1905,9 +1868,6 @@ public function uncheckOption($option): void
1905
1868
$ field ->click ();
1906
1869
}
1907
1870
1908
- /**
1909
- * @param string|array|WebDriverBy|WebDriverElement $field
1910
- */
1911
1871
public function fillField ($ field , $ value ): void
1912
1872
{
1913
1873
$ el = $ this ->findField ($ field );
@@ -1963,10 +1923,6 @@ public function type(string $text, int $delay = 0): void
1963
1923
sleep ($ delay );
1964
1924
}
1965
1925
1966
- /**
1967
- * @param string|array|WebDriverBy $field
1968
- * @param string $filename
1969
- */
1970
1926
public function attachFile ($ field , $ filename )
1971
1927
{
1972
1928
$ el = $ this ->findField ($ field );
@@ -2008,9 +1964,6 @@ protected function getVisibleText(): ?string
2008
1964
return '' ;
2009
1965
}
2010
1966
2011
- /**
2012
- * @param string|array|WebDriverBy $cssOrXPathOrRegex
2013
- */
2014
1967
public function grabTextFrom ($ cssOrXPathOrRegex )
2015
1968
{
2016
1969
$ els = $ this ->match ($ this ->getBaseElement (), $ cssOrXPathOrRegex , false );
@@ -2025,19 +1978,12 @@ public function grabTextFrom($cssOrXPathOrRegex)
2025
1978
throw new ElementNotFound ($ cssOrXPathOrRegex , 'CSS or XPath or Regex ' );
2026
1979
}
2027
1980
2028
- /**
2029
- * @param string|array|WebDriverBy $cssOrXpath
2030
- * @param string|null $attribute
2031
- */
2032
1981
public function grabAttributeFrom ($ cssOrXpath , $ attribute ): ?string
2033
1982
{
2034
1983
$ el = $ this ->matchFirstOrFail ($ this ->getBaseElement (), $ cssOrXpath );
2035
1984
return $ el ->getAttribute ($ attribute );
2036
1985
}
2037
1986
2038
- /**
2039
- * @param string|array|WebDriverBy $field
2040
- */
2041
1987
public function grabValueFrom ($ field ): ?string
2042
1988
{
2043
1989
$ el = $ this ->findField ($ field );
@@ -2050,12 +1996,6 @@ public function grabValueFrom($field): ?string
2050
1996
return $ el ->getAttribute ('value ' );
2051
1997
}
2052
1998
2053
- /**
2054
- * @param string|array|WebDriverBy$cssOrXpath
2055
- * @param string|null $attribute
2056
- * @return array|null[]|string[]
2057
- * @throws ModuleException
2058
- */
2059
1999
public function grabMultiple ($ cssOrXpath , $ attribute = null ): array
2060
2000
{
2061
2001
$ els = $ this ->match ($ this ->getBaseElement (), $ cssOrXpath );
@@ -2172,10 +2112,6 @@ public function seeNumberOfElementsInDOM($selector, $expected)
2172
2112
}
2173
2113
}
2174
2114
2175
- /**
2176
- * @param string|array|WebDriverBy $selector
2177
- * @param string $optionText
2178
- */
2179
2115
public function seeOptionIsSelected ($ selector , $ optionText ): void
2180
2116
{
2181
2117
$ el = $ this ->findField ($ selector );
@@ -2197,10 +2133,6 @@ public function seeOptionIsSelected($selector, $optionText): void
2197
2133
}
2198
2134
}
2199
2135
2200
- /**
2201
- * @param string|array|WebDriverBy $selector
2202
- * @param $optionText
2203
- */
2204
2136
public function dontSeeOptionIsSelected ($ selector , $ optionText ): void
2205
2137
{
2206
2138
$ el = $ this ->findField ($ selector );
0 commit comments