PHP Класс Sanpi\Behatch\Context\BrowserContext

Наследование: extends BaseContext
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( $timeout = 1 )
closeBrowser ( )
iAmOnUrlComposedBy ( Behat\Gherkin\Node\TableNode $tableNode ) Open url with various parameters
iClickOnTheNthElement ( $index, $element ) Clicks on the nth CSS element
iFillInWithTheCurrentDate ( $field ) Fills in form field with current date
iFillInWithTheCurrentDateAndModifier ( $field, $modifier ) Fills in form field with current date and strtotime modifier
iFollowTheNthLink ( $index, $link ) Click on the nth specified link
iHoverIShouldSeeIn ( $element ) Mouse over a CSS element
iSaveTheValueOfInTheParameter ( $field, $parameter ) Save value of the field in parameters array
iSetBasicAuthenticationWithAnd ( $user, $password ) Set login / password for next HTTP authentication
iShouldSeeLessThanNElementInTheNthParent ( $count, $element, $index, $parent )
iShouldSeeMoreThanNElementInTheNthParent ( $count, $element, $index, $parent )
iShouldSeeNElementInTheNthParent ( $count, $element, $index, $parent )
iWaitForElement ( $element ) Checks, that the page should contains specified element after timeout
iWaitSeconds ( $count )
iWaitSecondsForElement ( $count, $element ) Wait for a element
iWaitSecondsUntilISee ( $count, $text ) Checks, that the page should contains specified text after given timeout
iWaitSecondsUntilISeeInTheElement ( $count, $text, $element ) Checks, that the element contains specified text after timeout
iWaitUntilISee ( $text ) Checks, that the page should contains specified text after timeout
iWaitUntilISeeInTheElement ( $text, $element ) Checks, that the element contains specified text after timeout
pressTheNthButton ( $index, $button ) Presses the nth specified button
switchToIFrame ( $name ) Select a frame by its name or ID.
switchToMainFrame ( ) Go back to main document frame.
theElementShouldBeDisabled ( $element ) Checks, that element with given CSS is disabled
theElementShouldBeEnabled ( $element ) Checks, that element with given CSS is enabled
theElementShouldBeVisible ( $element ) Checks, that the specified CSS element is visible
theElementShouldNotBeVisible ( $element ) Checks, that the specified CSS element is not visible
theSelectBoxShouldContain ( $select, $option ) Checks, that given select box contains the specified option
theSelectBoxShouldNotContain ( $select, $option ) Checks, that given select box does not contain the specified option

Описание методов

__construct() публичный Метод

public __construct ( $timeout = 1 )

closeBrowser() публичный Метод

public closeBrowser ( )

iAmOnUrlComposedBy() публичный Метод

Open url with various parameters
public iAmOnUrlComposedBy ( Behat\Gherkin\Node\TableNode $tableNode )
$tableNode Behat\Gherkin\Node\TableNode

iClickOnTheNthElement() публичный Метод

Clicks on the nth CSS element
public iClickOnTheNthElement ( $index, $element )

iFillInWithTheCurrentDate() публичный Метод

Fills in form field with current date
public iFillInWithTheCurrentDate ( $field )

iFillInWithTheCurrentDateAndModifier() публичный Метод

Fills in form field with current date and strtotime modifier
public iFillInWithTheCurrentDateAndModifier ( $field, $modifier )

iHoverIShouldSeeIn() публичный Метод

Mouse over a CSS element
public iHoverIShouldSeeIn ( $element )

iSaveTheValueOfInTheParameter() публичный Метод

Save value of the field in parameters array
public iSaveTheValueOfInTheParameter ( $field, $parameter )

iSetBasicAuthenticationWithAnd() публичный Метод

Set login / password for next HTTP authentication
public iSetBasicAuthenticationWithAnd ( $user, $password )

iShouldSeeLessThanNElementInTheNthParent() публичный Метод

public iShouldSeeLessThanNElementInTheNthParent ( $count, $element, $index, $parent )

iShouldSeeMoreThanNElementInTheNthParent() публичный Метод

public iShouldSeeMoreThanNElementInTheNthParent ( $count, $element, $index, $parent )

iShouldSeeNElementInTheNthParent() публичный Метод

public iShouldSeeNElementInTheNthParent ( $count, $element, $index, $parent )

iWaitForElement() публичный Метод

Checks, that the page should contains specified element after timeout
public iWaitForElement ( $element )

iWaitSeconds() публичный Метод

public iWaitSeconds ( $count )

iWaitSecondsForElement() публичный Метод

Wait for a element
public iWaitSecondsForElement ( $count, $element )

iWaitSecondsUntilISee() публичный Метод

Checks, that the page should contains specified text after given timeout
public iWaitSecondsUntilISee ( $count, $text )

iWaitSecondsUntilISeeInTheElement() публичный Метод

Checks, that the element contains specified text after timeout
public iWaitSecondsUntilISeeInTheElement ( $count, $text, $element )

iWaitUntilISee() публичный Метод

Checks, that the page should contains specified text after timeout
public iWaitUntilISee ( $text )

iWaitUntilISeeInTheElement() публичный Метод

Checks, that the element contains specified text after timeout
public iWaitUntilISeeInTheElement ( $text, $element )

pressTheNthButton() публичный Метод

Presses the nth specified button
public pressTheNthButton ( $index, $button )

switchToIFrame() публичный Метод

Select a frame by its name or ID.
public switchToIFrame ( $name )

switchToMainFrame() публичный Метод

Go back to main document frame.
public switchToMainFrame ( )

theElementShouldBeDisabled() публичный Метод

Checks, that element with given CSS is disabled
public theElementShouldBeDisabled ( $element )

theElementShouldBeEnabled() публичный Метод

Checks, that element with given CSS is enabled
public theElementShouldBeEnabled ( $element )

theElementShouldBeVisible() публичный Метод

Checks, that the specified CSS element is visible
public theElementShouldBeVisible ( $element )

theElementShouldNotBeVisible() публичный Метод

Checks, that the specified CSS element is not visible
public theElementShouldNotBeVisible ( $element )

theSelectBoxShouldContain() публичный Метод

Checks, that given select box contains the specified option
public theSelectBoxShouldContain ( $select, $option )

theSelectBoxShouldNotContain() публичный Метод

Checks, that given select box does not contain the specified option
public theSelectBoxShouldNotContain ( $select, $option )