Skip to content

Commit

Permalink
Remove @param annotations from methods documented in interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Naktibalda committed Dec 26, 2021
1 parent d158de7 commit b74990e
Showing 1 changed file with 0 additions and 68 deletions.
68 changes: 0 additions & 68 deletions src/Codeception/Module/WebDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,9 +856,6 @@ public function _saveElementScreenshot($selector, string $filename): void
}
}

/**
* @param string|array|WebDriverBy $locator
*/
public function _findElements($locator): array
{
return $this->match($this->webDriver, $locator);
Expand Down Expand Up @@ -1160,10 +1157,6 @@ public function dontSeeInPageSource(string $text): void
);
}

/**
* @param string|array|WebDriverBy $link
* @param string|array|WebDriverBy|null $context
*/
public function click($link, $context = null)
{
$page = $this->webDriver;
Expand Down Expand Up @@ -1408,53 +1401,33 @@ public function grabFromCurrentUrl($uri = null)
return $matches[1];
}

/**
* @param string|array|WebDriverBy $checkbox
*/
public function seeCheckboxIsChecked($checkbox)
{
$this->assertTrue($this->findField($checkbox)->isSelected());
}

/**
* @param string|array|WebDriverBy $checkbox
*/
public function dontSeeCheckboxIsChecked($checkbox)
{
$this->assertFalse($this->findField($checkbox)->isSelected());
}

/**
* @param string|array|WebDriverBy|WebDriverElement $field
* @param $value
*/
public function seeInField($field, $value)
{
$els = $this->findFields($field);
$this->assert($this->proceedSeeInField($els, $value));
}

/**
* @param string|array|WebDriverBy|WebDriverElement $field
* @param $value
*/
public function dontSeeInField($field, $value)
{
$els = $this->findFields($field);
$this->assertNot($this->proceedSeeInField($els, $value));
}

/**
* @param string|array|WebDriverBy $formSelector
*/
public function seeInFormFields($formSelector, array $params)
{
$this->proceedSeeInFormFields($formSelector, $params, false);
}

/**
* @param string|array|WebDriverBy $formSelector
*/
public function dontSeeInFormFields($formSelector, array $params)
{
$this->proceedSeeInFormFields($formSelector, $params, true);
Expand Down Expand Up @@ -1581,10 +1554,6 @@ protected function proceedSeeInField(array $elements, $value): array
];
}

/**
* @param string|array|WebDriverBy|WebDriverElement $select
* @param string|array|WebDriverBy $option
*/
public function selectOption($select, $option): void
{
$el = $this->findField($select);
Expand Down Expand Up @@ -1871,9 +1840,6 @@ protected function matchCheckables($selector): array
return $els;
}

/**
* @param string|array|WebDriverBy|WebDriverElement $option
*/
public function checkOption($option): void
{
$field = $this->findCheckable($this->webDriver, $option);
Expand All @@ -1888,9 +1854,6 @@ public function checkOption($option): void
$field->click();
}

/**
* @param string|array|WebDriverBy|WebDriverElement $option
*/
public function uncheckOption($option): void
{
$field = $this->findCheckable($this->getBaseElement(), $option);
Expand All @@ -1905,9 +1868,6 @@ public function uncheckOption($option): void
$field->click();
}

/**
* @param string|array|WebDriverBy|WebDriverElement $field
*/
public function fillField($field, $value): void
{
$el = $this->findField($field);
Expand Down Expand Up @@ -1963,10 +1923,6 @@ public function type(string $text, int $delay = 0): void
sleep($delay);
}

/**
* @param string|array|WebDriverBy $field
* @param string $filename
*/
public function attachFile($field, $filename)
{
$el = $this->findField($field);
Expand Down Expand Up @@ -2008,9 +1964,6 @@ protected function getVisibleText(): ?string
return '';
}

/**
* @param string|array|WebDriverBy $cssOrXPathOrRegex
*/
public function grabTextFrom($cssOrXPathOrRegex)
{
$els = $this->match($this->getBaseElement(), $cssOrXPathOrRegex, false);
Expand All @@ -2025,19 +1978,12 @@ public function grabTextFrom($cssOrXPathOrRegex)
throw new ElementNotFound($cssOrXPathOrRegex, 'CSS or XPath or Regex');
}

/**
* @param string|array|WebDriverBy $cssOrXpath
* @param string|null $attribute
*/
public function grabAttributeFrom($cssOrXpath, $attribute): ?string
{
$el = $this->matchFirstOrFail($this->getBaseElement(), $cssOrXpath);
return $el->getAttribute($attribute);
}

/**
* @param string|array|WebDriverBy $field
*/
public function grabValueFrom($field): ?string
{
$el = $this->findField($field);
Expand All @@ -2050,12 +1996,6 @@ public function grabValueFrom($field): ?string
return $el->getAttribute('value');
}

/**
* @param string|array|WebDriverBy$cssOrXpath
* @param string|null $attribute
* @return array|null[]|string[]
* @throws ModuleException
*/
public function grabMultiple($cssOrXpath, $attribute = null): array
{
$els = $this->match($this->getBaseElement(), $cssOrXpath);
Expand Down Expand Up @@ -2172,10 +2112,6 @@ public function seeNumberOfElementsInDOM($selector, $expected)
}
}

/**
* @param string|array|WebDriverBy $selector
* @param string $optionText
*/
public function seeOptionIsSelected($selector, $optionText): void
{
$el = $this->findField($selector);
Expand All @@ -2197,10 +2133,6 @@ public function seeOptionIsSelected($selector, $optionText): void
}
}

/**
* @param string|array|WebDriverBy $selector
* @param $optionText
*/
public function dontSeeOptionIsSelected($selector, $optionText): void
{
$el = $this->findField($selector);
Expand Down

0 comments on commit b74990e

Please sign in to comment.