PHP 클래스 Sanpi\Behatch\Context\BrowserContext

상속: extends BaseContext
파일 보기 프로젝트 열기: behatch/contexts

공개 메소드들

메소드 설명
__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 )