PHP 트레잇 _generated\AcceptanceTesterActions

파일 보기 프로젝트 열기: phundament/app

공개 메소드들

메소드 설명
acceptPopup ( ) [!] Method is generated. Documentation taken from corresponding module.
amBearerAuthenticated ( $accessToken ) [!] Method is generated. Documentation taken from corresponding module.
amDigestAuthenticated ( $username, $password ) [!] Method is generated. Documentation taken from corresponding module.
amHttpAuthenticated ( $username, $password ) [!] Method is generated. Documentation taken from corresponding module.
amOnPage ( $page ) [!] Method is generated. Documentation taken from corresponding module.
amOnSubdomain ( $subdomain ) : mixed [!] Method is generated. Documentation taken from corresponding module.
amOnUrl ( $url ) [!] Method is generated. Documentation taken from corresponding module.
appendField ( string $field, string $value ) [!] Method is generated. Documentation taken from corresponding module.
attachFile ( $field, $filename ) [!] Method is generated. Documentation taken from corresponding module.
canSee ( $text, null $selector = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeCheckboxIsChecked ( $checkbox ) [!] Method is generated. Documentation taken from corresponding module.
canSeeCookie ( $cookie, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
canSeeCurrentUrlEquals ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
canSeeCurrentUrlMatches ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
canSeeElement ( $selector, array $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeElementInDOM ( $selector, $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeHttpHeader ( $name, $value = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeHttpHeaderOnce ( $name ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInCurrentUrl ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInField ( $field, $value ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInFormFields ( $formSelector, $params ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInPageSource ( $text ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInPopup ( $text ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInSource ( $raw ) [!] Method is generated. Documentation taken from corresponding module.
canSeeInTitle ( $title ) : mixed [!] Method is generated. Documentation taken from corresponding module.
canSeeLink ( $text, null $url = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeNumberOfElements ( $selector, mixed $expected ) [!] Method is generated. Documentation taken from corresponding module.
canSeeNumberOfElementsInDOM ( $selector, $expected ) [!] Method is generated. Documentation taken from corresponding module.
canSeeOptionIsSelected ( $selector, $optionText ) : mixed [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseCodeIs ( $code ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseContains ( $text ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseContainsJson ( array $json = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseEquals ( $expected ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseIsJson ( ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseIsXml ( ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseJsonMatchesJsonPath ( $jsonPath ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseJsonMatchesXpath ( $xpath ) [!] Method is generated. Documentation taken from corresponding module.
canSeeResponseMatchesJsonType ( array $jsonType, string $jsonPath = null ) [!] Method is generated. Documentation taken from corresponding module.
canSeeXmlResponseEquals ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
canSeeXmlResponseIncludes ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
canSeeXmlResponseMatchesXpath ( $xpath ) [!] Method is generated. Documentation taken from corresponding module.
cancelPopup ( ) [!] Method is generated. Documentation taken from corresponding module.
cantSee ( $text, null $selector = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeCheckboxIsChecked ( $checkbox ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeCookie ( $cookie, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
cantSeeCurrentUrlEquals ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeCurrentUrlMatches ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeElement ( $selector, array $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeElementInDOM ( $selector, $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeHttpHeader ( $name, $value = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInCurrentUrl ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInField ( $field, $value ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInFormFields ( $formSelector, $params ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInPageSource ( $text ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInSource ( $raw ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeInTitle ( $title ) : mixed [!] Method is generated. Documentation taken from corresponding module.
cantSeeLink ( $text, null $url = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeOptionIsSelected ( $selector, $optionText ) : mixed [!] Method is generated. Documentation taken from corresponding module.
cantSeeResponseCodeIs ( $code ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeResponseContains ( $text ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeResponseContainsJson ( array $json = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeResponseJsonMatchesJsonPath ( array $jsonPath ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeResponseMatchesJsonType ( $jsonType, null $jsonPath = null ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeXmlResponseEquals ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeXmlResponseIncludes ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
cantSeeXmlResponseMatchesXpath ( $xpath ) [!] Method is generated. Documentation taken from corresponding module.
checkOption ( $option ) [!] Method is generated. Documentation taken from corresponding module.
click ( $link, $context = null ) [!] Method is generated. Documentation taken from corresponding module.
clickWithRightButton ( $cssOrXPath ) [!] Method is generated. Documentation taken from corresponding module.
debugWebDriverLogs ( ) [!] Method is generated. Documentation taken from corresponding module.
dontSee ( $text, null $selector = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeCheckboxIsChecked ( $checkbox ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeCookie ( $cookie, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
dontSeeCurrentUrlEquals ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeCurrentUrlMatches ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeElement ( $selector, array $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeElementInDOM ( $selector, $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeHttpHeader ( $name, $value = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInCurrentUrl ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInField ( $field, $value ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInFormFields ( $formSelector, $params ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInPageSource ( $text ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInSource ( $raw ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeInTitle ( $title ) : mixed [!] Method is generated. Documentation taken from corresponding module.
dontSeeLink ( $text, null $url = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeOptionIsSelected ( $selector, $optionText ) : mixed [!] Method is generated. Documentation taken from corresponding module.
dontSeeResponseCodeIs ( $code ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeResponseContains ( $text ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeResponseContainsJson ( array $json = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeResponseJsonMatchesJsonPath ( array $jsonPath ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeResponseMatchesJsonType ( $jsonType, null $jsonPath = null ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeXmlResponseEquals ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeXmlResponseIncludes ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
dontSeeXmlResponseMatchesXpath ( $xpath ) [!] Method is generated. Documentation taken from corresponding module.
doubleClick ( $cssOrXPath ) [!] Method is generated. Documentation taken from corresponding module.
dragAndDrop ( string $source, string $target ) [!] Method is generated. Documentation taken from corresponding module.
executeInSelenium ( callable $function ) [!] Method is generated. Documentation taken from corresponding module.
executeJS ( $script ) : mixed [!] Method is generated. Documentation taken from corresponding module.
fillField ( $field, $value ) [!] Method is generated. Documentation taken from corresponding module.
getVisibleText ( ) : string [!] Method is generated. Documentation taken from corresponding module.
grabAttributeFrom ( $cssOrXPath, $attribute ) : string [!] Method is generated. Documentation taken from corresponding module.
grabCookie ( $cookie, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
grabDataFromJsonResponse ( $path ) [!] Method is generated. Documentation taken from corresponding module.
grabDataFromResponseByJsonPath ( string $jsonPath ) : array [!] Method is generated. Documentation taken from corresponding module.
grabFromCurrentUrl ( null $uri = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
grabHttpHeader ( $name, boolean $first = null ) : string | array [!] Method is generated. Documentation taken from corresponding module.
grabMultiple ( $cssOrXpath, $attribute = null ) : string[] [!] Method is generated. Documentation taken from corresponding module.
grabResponse ( ) : string [!] Method is generated. Documentation taken from corresponding module.
grabTextContentFromXmlElement ( $cssOrXPath ) : string [!] Method is generated. Documentation taken from corresponding module.
grabTextFrom ( $cssOrXPathOrRegex ) : mixed [!] Method is generated. Documentation taken from corresponding module.
grabValueFrom ( $field ) : mixed [!] Method is generated. Documentation taken from corresponding module.
haveHttpHeader ( $name, $value ) [!] Method is generated. Documentation taken from corresponding module.
loadSessionSnapshot ( string $name ) : boolean [!] Method is generated. Documentation taken from corresponding module.
makeScreenshot ( $name ) [!] Method is generated. Documentation taken from corresponding module.
maximizeWindow ( ) [!] Method is generated. Documentation taken from corresponding module.
moveBack ( ) [!] Method is generated. Documentation taken from corresponding module.
moveForward ( ) [!] Method is generated. Documentation taken from corresponding module.
moveMouseOver ( string $cssOrXPath, integer $offsetX = null, integer $offsetY = null ) [!] Method is generated. Documentation taken from corresponding module.
pauseExecution ( ) [!] Method is generated. Documentation taken from corresponding module.
pressKey ( $element, $char ) [!] Method is generated. Documentation taken from corresponding module.
reloadPage ( ) [!] Method is generated. Documentation taken from corresponding module.
resetCookie ( $cookie, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
resizeWindow ( integer $width, integer $height ) [!] Method is generated. Documentation taken from corresponding module.
saveSessionSnapshot ( string $name ) [!] Method is generated. Documentation taken from corresponding module.
scrollTo ( $selector, integer $offsetX = null, integer $offsetY = null ) [!] Method is generated. Documentation taken from corresponding module.
see ( $text, null $selector = null ) [!] Method is generated. Documentation taken from corresponding module.
seeCheckboxIsChecked ( $checkbox ) [!] Method is generated. Documentation taken from corresponding module.
seeCookie ( $cookie, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
seeCurrentUrlEquals ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
seeCurrentUrlMatches ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
seeElement ( $selector, array $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
seeElementInDOM ( $selector, $attributes = null ) [!] Method is generated. Documentation taken from corresponding module.
seeHttpHeader ( $name, $value = null ) [!] Method is generated. Documentation taken from corresponding module.
seeHttpHeaderOnce ( $name ) [!] Method is generated. Documentation taken from corresponding module.
seeInCurrentUrl ( $uri ) [!] Method is generated. Documentation taken from corresponding module.
seeInField ( $field, $value ) [!] Method is generated. Documentation taken from corresponding module.
seeInFormFields ( $formSelector, $params ) [!] Method is generated. Documentation taken from corresponding module.
seeInPageSource ( $text ) [!] Method is generated. Documentation taken from corresponding module.
seeInPopup ( $text ) [!] Method is generated. Documentation taken from corresponding module.
seeInSource ( $raw ) [!] Method is generated. Documentation taken from corresponding module.
seeInTitle ( $title ) : mixed [!] Method is generated. Documentation taken from corresponding module.
seeLink ( $text, null $url = null ) [!] Method is generated. Documentation taken from corresponding module.
seeNumberOfElements ( $selector, mixed $expected ) [!] Method is generated. Documentation taken from corresponding module.
seeNumberOfElementsInDOM ( $selector, $expected ) [!] Method is generated. Documentation taken from corresponding module.
seeOptionIsSelected ( $selector, $optionText ) : mixed [!] Method is generated. Documentation taken from corresponding module.
seeResponseCodeIs ( $code ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseContains ( $text ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseContainsJson ( array $json = null ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseEquals ( $expected ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseIsJson ( ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseIsXml ( ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseJsonMatchesJsonPath ( $jsonPath ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseJsonMatchesXpath ( $xpath ) [!] Method is generated. Documentation taken from corresponding module.
seeResponseMatchesJsonType ( array $jsonType, string $jsonPath = null ) [!] Method is generated. Documentation taken from corresponding module.
seeXmlResponseEquals ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
seeXmlResponseIncludes ( $xml ) [!] Method is generated. Documentation taken from corresponding module.
seeXmlResponseMatchesXpath ( $xpath ) [!] Method is generated. Documentation taken from corresponding module.
selectOption ( $select, $option ) [!] Method is generated. Documentation taken from corresponding module.
sendDELETE ( $url, array $params = null, array $files = null ) [!] Method is generated. Documentation taken from corresponding module.
sendGET ( $url, array $params = null ) [!] Method is generated. Documentation taken from corresponding module.
sendHEAD ( $url, array $params = null ) [!] Method is generated. Documentation taken from corresponding module.
sendLINK ( $url, array $linkEntries ) [!] Method is generated. Documentation taken from corresponding module.
sendOPTIONS ( $url, array $params = null ) [!] Method is generated. Documentation taken from corresponding module.
sendPATCH ( $url, array $params = null, array $files = null ) [!] Method is generated. Documentation taken from corresponding module.
sendPOST ( $url, array | JsonSerializable $params = null, array $files = null ) [!] Method is generated. Documentation taken from corresponding module.
sendPUT ( $url, array $params = null, array $files = null ) [!] Method is generated. Documentation taken from corresponding module.
sendUNLINK ( $url, array $linkEntries ) [!] Method is generated. Documentation taken from corresponding module.
setCookie ( $cookie, $value, array $params = null ) : mixed [!] Method is generated. Documentation taken from corresponding module.
startFollowingRedirects ( ) [!] Method is generated. Documentation taken from corresponding module.
stopFollowingRedirects ( ) [!] Method is generated. Documentation taken from corresponding module.
submitForm ( $selector, $params, $button = null ) [!] Method is generated. Documentation taken from corresponding module.
switchToIFrame ( string | null $name = null ) [!] Method is generated. Documentation taken from corresponding module.
switchToWindow ( string | null $name = null ) [!] Method is generated. Documentation taken from corresponding module.
typeInPopup ( $keys ) [!] Method is generated. Documentation taken from corresponding module.
uncheckOption ( $option ) [!] Method is generated. Documentation taken from corresponding module.
unselectOption ( $select, $option ) [!] Method is generated. Documentation taken from corresponding module.
wait ( integer $timeout ) [!] Method is generated. Documentation taken from corresponding module.
waitForElement ( $element, integer $timeout = null ) [!] Method is generated. Documentation taken from corresponding module.
waitForElementChange ( $element, Closure $callback, integer $timeout = null ) [!] Method is generated. Documentation taken from corresponding module.
waitForElementNotVisible ( $element, integer $timeout = null ) [!] Method is generated. Documentation taken from corresponding module.
waitForElementVisible ( $element, integer $timeout = null ) [!] Method is generated. Documentation taken from corresponding module.
waitForJS ( string $script, integer $timeout = null ) [!] Method is generated. Documentation taken from corresponding module.
waitForText ( string $text, integer $timeout = null, null $selector = null ) [!] Method is generated. Documentation taken from corresponding module.

보호된 메소드들

메소드 설명
getScenario ( ) : Codeception\Scenario

메소드 상세

acceptPopup() 공개 메소드

Accepts the active JavaScript native popup window, as created by window.alert|window.confirm|window.prompt. Don't confuse popups with modal windows, as created by various libraries.
또한 보기: Codeception\Module\WebDriver::acceptPopup()
public acceptPopup ( )

amBearerAuthenticated() 공개 메소드

Adds Bearer authentication via access token.
또한 보기: Codeception\Module\REST::amBearerAuthenticated()
public amBearerAuthenticated ( $accessToken )
$accessToken

amDigestAuthenticated() 공개 메소드

Adds Digest authentication via username/password.
또한 보기: Codeception\Module\REST::amDigestAuthenticated()
public amDigestAuthenticated ( $username, $password )
$username
$password

amHttpAuthenticated() 공개 메소드

Adds HTTP authentication via username/password.
또한 보기: Codeception\Module\REST::amHttpAuthenticated()
public amHttpAuthenticated ( $username, $password )
$username
$password

amOnPage() 공개 메소드

Opens the page for the given relative URI. php amOnPage('/'); opens /register page $I->amOnPage('/register');
또한 보기: Codeception\Module\WebDriver::amOnPage()
public amOnPage ( $page )
$page

amOnSubdomain() 공개 메소드

Changes the subdomain for the 'url' configuration parameter. Does not open a page; use amOnPage for that. php amOnSubdomain('user'); $I->amOnPage('/'); moves to http://user.mysite.com/ ?>
또한 보기: Codeception\Module\WebDriver::amOnSubdomain()
public amOnSubdomain ( $subdomain ) : mixed
$subdomain
리턴 mixed

amOnUrl() 공개 메소드

Open web page at the given absolute URL and sets its hostname as the base host. php amOnUrl('http://codeception.com'); $I->amOnPage('/quickstart'); // moves to http://codeception.com/quickstart ?>
또한 보기: Codeception\Module\WebDriver::amOnUrl()
public amOnUrl ( $url )

appendField() 공개 메소드

Append the given text to the given element. Can also add a selection to a select box. php appendField('#mySelectbox', 'SelectValue'); $I->appendField('#myTextField', 'appended'); ?>
또한 보기: Codeception\Module\WebDriver::appendField()
public appendField ( string $field, string $value )
$field string
$value string

attachFile() 공개 메소드

Attaches a file relative to the Codeception data directory to the given file upload field. php attachFile('input[@type="file"]', 'prices.xls'); ?>
또한 보기: Codeception\Module\WebDriver::attachFile()
public attachFile ( $field, $filename )
$field
$filename

canSee() 공개 메소드

Checks that the current page contains the given string (case insensitive). You can specify a specific HTML element (via CSS or XPath) as the second parameter to only search within that element. php see('Logout'); // I can suppose user is logged in $I->see('Sign Up', 'h1'); // I can suppose it's a signup page $I->see('Sign Up', '//body/h1'); // with XPath Note that the search is done after stripping all HTML tags from the body, so $I->see('strong') will return true for strings like: -

I am Stronger than thou

- But will *not* be true for strings like: - Home -
Home - For checking the raw source code, use seeInSource().
또한 보기: Codeception\Module\WebDriver::see()
public canSee ( $text, null $selector = null )
$text
$selector null Conditional Assertion: Test won't be stopped on fail

canSeeCheckboxIsChecked() 공개 메소드

Checks that the specified checkbox is checked. php seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form. $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]'); ?>
또한 보기: Codeception\Module\WebDriver::seeCheckboxIsChecked()
public canSeeCheckboxIsChecked ( $checkbox )
$checkbox Conditional Assertion: Test won't be stopped on fail

canSeeCookie() 공개 메소드

Checks that a cookie with the given name is set. You can set additional cookie params like domain, path as array passed in last argument. php seeCookie('PHPSESSID'); ?>
또한 보기: Codeception\Module\WebDriver::seeCookie()
public canSeeCookie ( $cookie, array $params = null ) : mixed
$cookie
$params array
리턴 mixed Conditional Assertion: Test won't be stopped on fail

canSeeCurrentUrlEquals() 공개 메소드

Checks that the current URL is equal to the given string. Unlike seeInCurrentUrl, this only matches the full URL. php seeCurrentUrlEquals('/'); ?>
또한 보기: Codeception\Module\WebDriver::seeCurrentUrlEquals()
public canSeeCurrentUrlEquals ( $uri )
$uri Conditional Assertion: Test won't be stopped on fail

canSeeCurrentUrlMatches() 공개 메소드

Checks that the current URL matches the given regular expression. php seeCurrentUrlMatches('~$/users/(\d+)~'); ?>
또한 보기: Codeception\Module\WebDriver::seeCurrentUrlMatches()
public canSeeCurrentUrlMatches ( $uri )
$uri Conditional Assertion: Test won't be stopped on fail

canSeeElement() 공개 메소드

Checks that the given element exists on the page and is visible. You can also specify expected attributes of this element. php seeElement('.error'); $I->seeElement('//form/input[1]'); $I->seeElement('input', ['name' => 'login']); $I->seeElement('input', ['value' => '123456']); strict locator in first arg, attributes in second $I->seeElement(['css' => 'form input'], ['name' => 'login']); ?>
또한 보기: Codeception\Module\WebDriver::seeElement()
public canSeeElement ( $selector, array $attributes = null )
$selector
$attributes array

canSeeElementInDOM() 공개 메소드

Checks that the given element exists on the page, even it is invisible. php seeElementInDOM('//form/input[type=hidden]'); ?>
또한 보기: Codeception\Module\WebDriver::seeElementInDOM()
public canSeeElementInDOM ( $selector, $attributes = null )
$selector Conditional Assertion: Test won't be stopped on fail

canSeeHttpHeader() 공개 메소드

Checks over the given HTTP header and (optionally) its value, asserting that are there
또한 보기: Codeception\Module\REST::seeHttpHeader()
public canSeeHttpHeader ( $name, $value = null )
$name
$value

canSeeHttpHeaderOnce() 공개 메소드

Checks that http response header is received only once. HTTP RFC2616 allows multiple response headers with the same name. You can check that you didn't accidentally sent the same header twice. php seeHttpHeaderOnce('Cache-Control'); ?>>
또한 보기: Codeception\Module\REST::seeHttpHeaderOnce()
public canSeeHttpHeaderOnce ( $name )
$name

canSeeInCurrentUrl() 공개 메소드

Checks that current URI contains the given string. php seeInCurrentUrl('home'); to match: /users/1 $I->seeInCurrentUrl('/users/'); ?>
또한 보기: Codeception\Module\WebDriver::seeInCurrentUrl()
public canSeeInCurrentUrl ( $uri )
$uri Conditional Assertion: Test won't be stopped on fail

canSeeInField() 공개 메소드

Checks that the given input field or textarea contains the given value. For fuzzy locators, fields are matched by label text, the "name" attribute, CSS, and XPath. php seeInField('Body','Type your comment here'); $I->seeInField('form textarea[name=body]','Type your comment here'); $I->seeInField('form input[type=hidden]','hidden_value'); $I->seeInField('#searchform input','Search'); $I->seeInField('//form/*[@name=search]','Search'); $I->seeInField(['name' => 'search'], 'Search'); ?>
또한 보기: Codeception\Module\WebDriver::seeInField()
public canSeeInField ( $field, $value )
$field
$value Conditional Assertion: Test won't be stopped on fail

canSeeInFormFields() 공개 메소드

Checks if the array of form parameters (name => value) are set on the form matched with the passed selector. php seeInFormFields('form[name=myform]', [ 'input1' => 'value', 'input2' => 'other value', ]); ?> For multi-select elements, or to check values of multiple elements with the same name, an array may be passed: php seeInFormFields('.form-class', [ 'multiselect' => [ 'value1', 'value2', ], 'checkbox[]' => [ 'a checked value', 'another checked value', ], ]); ?> Additionally, checkbox values can be checked with a boolean. php seeInFormFields('#form-id', [ 'checkbox1' => true, // passes if checked 'checkbox2' => false, // passes if unchecked ]); ?> Pair this with submitForm for quick testing magic. php 'value', 'field2' => 'another value', 'checkbox1' => true, ... ]; $I->submitForm('//form[@id=my-form]', $form, 'submitButton'); $I->amOnPage('/path/to/form-page') may be needed $I->seeInFormFields('//form[@id=my-form]', $form); ?>
또한 보기: Codeception\Module\WebDriver::seeInFormFields()
public canSeeInFormFields ( $formSelector, $params )
$formSelector
$params Conditional Assertion: Test won't be stopped on fail

canSeeInPageSource() 공개 메소드

Checks that the page source contains the given string. php seeInPageSource('
또한 보기: Codeception\Module\WebDriver::seeInPageSource()
public canSeeInPageSource ( $text )
$text Conditional Assertion: Test won't be stopped on fail

canSeeInPopup() 공개 메소드

Checks that the active JavaScript popup, as created by window.alert|window.confirm|window.prompt, contains the given string.
또한 보기: Codeception\Module\WebDriver::seeInPopup()
public canSeeInPopup ( $text )
$text Conditional Assertion: Test won't be stopped on fail

canSeeInSource() 공개 메소드

Checks that the current page contains the given string in its raw source code. php seeInSource('

Green eggs & ham

');
또한 보기: Codeception\Module\WebDriver::seeInSource()
public canSeeInSource ( $raw )
$raw Conditional Assertion: Test won't be stopped on fail

canSeeInTitle() 공개 메소드

Checks that the page title contains the given string. php seeInTitle('Blog - Post #1'); ?>
또한 보기: Codeception\Module\WebDriver::seeInTitle()
public canSeeInTitle ( $title ) : mixed
$title
리턴 mixed Conditional Assertion: Test won't be stopped on fail

canSeeNumberOfElements() 공개 메소드

Checks that there are a certain number of elements matched by the given locator on the page. php seeNumberOfElements('tr', 10); $I->seeNumberOfElements('tr', [0,10]); //between 0 and 10 elements ?>
또한 보기: Codeception\Module\WebDriver::seeNumberOfElements()
public canSeeNumberOfElements ( $selector, mixed $expected )
$selector
$expected mixed : - string: strict number - array: range of numbers [0,10] Conditional Assertion: Test won't be stopped on fail

canSeeNumberOfElementsInDOM() 공개 메소드

Conditional Assertion: Test won't be stopped on fail
또한 보기: Codeception\Module\WebDriver::seeNumberOfElementsInDOM()
public canSeeNumberOfElementsInDOM ( $selector, $expected )

canSeeOptionIsSelected() 공개 메소드

Checks that the given option is selected. php seeOptionIsSelected('#form input[name=payment]', 'Visa'); ?>
또한 보기: Codeception\Module\WebDriver::seeOptionIsSelected()
public canSeeOptionIsSelected ( $selector, $optionText ) : mixed
$selector
$optionText
리턴 mixed Conditional Assertion: Test won't be stopped on fail

canSeeResponseCodeIs() 공개 메소드

Checks response code equals to provided value.
또한 보기: Codeception\Module\REST::seeResponseCodeIs()
public canSeeResponseCodeIs ( $code )
$code Conditional Assertion: Test won't be stopped on fail

canSeeResponseContains() 공개 메소드

Checks whether the last response contains text.
또한 보기: Codeception\Module\REST::seeResponseContains()
public canSeeResponseContains ( $text )
$text

canSeeResponseContainsJson() 공개 메소드

Checks whether the last JSON response contains provided array. The response is converted to array with json_decode($response, true) Thus, JSON is represented by associative array. This method matches that response array contains provided array. Examples: php seeResponseContainsJson(array('name' => 'john')); response {user: john, profile: { email: [email protected] }} $I->seeResponseContainsJson(array('email' => '[email protected]')); ?> This method recursively checks if one array can be found inside of another.
또한 보기: Codeception\Module\REST::seeResponseContainsJson()
public canSeeResponseContainsJson ( array $json = null )
$json array

canSeeResponseEquals() 공개 메소드

Checks if response is exactly the same as provided.
또한 보기: Codeception\Module\REST::seeResponseEquals()
public canSeeResponseEquals ( $expected )

canSeeResponseIsJson() 공개 메소드

Checks whether last response was valid JSON. This is done with json_last_error function.
또한 보기: Codeception\Module\REST::seeResponseIsJson()

canSeeResponseIsXml() 공개 메소드

Checks whether last response was valid XML. This is done with libxml_get_last_error function.
또한 보기: Codeception\Module\REST::seeResponseIsXml()
public canSeeResponseIsXml ( )

canSeeResponseJsonMatchesJsonPath() 공개 메소드

Checks if json structure in response matches JsonPath. JsonPath is XPath equivalent for querying Json structures. Try your JsonPath expressions online. This assertion allows you to check the structure of response json. This method **require flow/jsonpath > 0.2 library to be installed**. json { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 } ], "bicycle": { "color": "red", "price": 19.95 } } } php seeResponseJsonMatchesJsonPath('$.store.book[*].author'); first book in store has author $I->seeResponseJsonMatchesJsonPath('$.store.book[0].author'); at least one item in store has price $I->seeResponseJsonMatchesJsonPath('$.store..price'); ?>
또한 보기: Codeception\Module\REST::seeResponseJsonMatchesJsonPath()
public canSeeResponseJsonMatchesJsonPath ( $jsonPath )

canSeeResponseJsonMatchesXpath() 공개 메소드

Checks if json structure in response matches the xpath provided. JSON is not supposed to be checked against XPath, yet it can be converted to xml and used with XPath. This assertion allows you to check the structure of response json. * json { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 } ], "bicycle": { "color": "red", "price": 19.95 } } } php seeResponseJsonMatchesXpath('//store/book/author'); first book in store has author $I->seeResponseJsonMatchesXpath('//store/book[1]/author'); at least one item in store has price $I->seeResponseJsonMatchesXpath('/store//price'); ?>
또한 보기: Codeception\Module\REST::seeResponseJsonMatchesXpath()
public canSeeResponseJsonMatchesXpath ( $xpath )

canSeeResponseMatchesJsonType() 공개 메소드

Checks that Json matches provided types. In case you don't know the actual values of JSON data returned you can match them by type. Starts check with a root element. If JSON data is array it will check the first element of an array. You can specify the path in the json which should be checked with JsonPath Basic example: php seeResponseMatchesJsonType([ 'user_id' => 'integer', 'name' => 'string|null', 'is_active' => 'boolean' ]); narrow down matching with JsonPath: {"users": [{ "name": "davert"}, {"id": 1}]} $I->seeResponseMatchesJsonType(['name' => 'string'], '$.users[0]'); ?> In this case you can match that record contains fields with data types you expected. The list of possible data types: * string * integer * float * array (json object is array as well) * boolean You can also use nested data type structures: php seeResponseMatchesJsonType([ 'user_id' => 'integer|string', // multiple types 'company' => ['name' => 'string'] ]); ?> You can also apply filters to check values. Filter can be applied with : char after the type declatation. Here is the list of possible filters: * integer:>{val} - checks that integer is greater than {val} (works with float and string types too). * integer:<{val} - checks that integer is lower than {val} (works with float and string types too). * string:url - checks that value is valid url. * string:date - checks that value is date in JavaScript format: https://weblog.west-wind.com/posts/2014/Jan/06/JavaScript-JSON-Date-Parsing-and-real-Dates * string:email - checks that value is a valid email according to http://emailregex.com/ * string:regex({val}) - checks that string matches a regex provided with {val} This is how filters can be used: php '[email protected]'} $I->seeResponseMatchesJsonType([ 'user_id' => 'string:>0:<1000', // multiple filters can be used 'email' => 'string:regex(~\@~)' // we just check that @ char is included ]); {'user_id': '1'} $I->seeResponseMatchesJsonType( 'user_id' => 'string:>0', // works with strings as well } ?> You can also add custom filters y accessing JsonType::addCustomFilter method. See [JsonType reference.
또한 보기: Codeception\Module\REST::seeResponseMatchesJsonType()
public canSeeResponseMatchesJsonType ( array $jsonType, string $jsonPath = null )
$jsonType array
$jsonPath string Conditional Assertion: Test won't be stopped on fail

canSeeXmlResponseEquals() 공개 메소드

Checks XML response equals provided XML. Comparison is done by canonicalizing both xml`s. Parameters can be passed either as DOMDocument, DOMNode, XML string, or array (if no attributes).
또한 보기: Codeception\Module\REST::seeXmlResponseEquals()
public canSeeXmlResponseEquals ( $xml )
$xml

canSeeXmlResponseIncludes() 공개 메소드

Checks XML response includes provided XML. Comparison is done by canonicalizing both xmls. Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes). Example: php seeXmlResponseIncludes("1"); ?> ```
또한 보기: Codeception\Module\REST::seeXmlResponseIncludes()
public canSeeXmlResponseIncludes ( $xml )
$xml

canSeeXmlResponseMatchesXpath() 공개 메소드

Checks wheather XML response matches XPath php seeXmlResponseMatchesXpath('//root/user[@id=1]');
또한 보기: Codeception\Module\REST::seeXmlResponseMatchesXpath()
public canSeeXmlResponseMatchesXpath ( $xpath )
$xpath Conditional Assertion: Test won't be stopped on fail

cancelPopup() 공개 메소드

Dismisses the active JavaScript popup, as created by window.alert|window.confirm|window.prompt.
또한 보기: Codeception\Module\WebDriver::cancelPopup()
public cancelPopup ( )

cantSee() 공개 메소드

Checks that the current page doesn't contain the text specified (case insensitive). Give a locator as the second parameter to match a specific region. php dontSee('Login'); // I can suppose user is already logged in $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page $I->dontSee('Sign Up','//body/h1'); // with XPath Note that the search is done after stripping all HTML tags from the body, so $I->dontSee('strong') will fail on strings like: -

I am Stronger than thou

- But will ignore strings like: - Home -
Home - For checking the raw source code, use seeInSource().
또한 보기: Codeception\Module\WebDriver::dontSee()
public cantSee ( $text, null $selector = null )
$text
$selector null Conditional Assertion: Test won't be stopped on fail

cantSeeCheckboxIsChecked() 공개 메소드

Check that the specified checkbox is unchecked. php dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form. ?>
또한 보기: Codeception\Module\WebDriver::dontSeeCheckboxIsChecked()
public cantSeeCheckboxIsChecked ( $checkbox )
$checkbox Conditional Assertion: Test won't be stopped on fail

cantSeeCookie() 공개 메소드

Checks that there isn't a cookie with the given name. You can set additional cookie params like domain, path as array passed in last argument.
또한 보기: Codeception\Module\WebDriver::dontSeeCookie()
public cantSeeCookie ( $cookie, array $params = null ) : mixed
$cookie
$params array
리턴 mixed Conditional Assertion: Test won't be stopped on fail

cantSeeCurrentUrlEquals() 공개 메소드

Checks that the current URL doesn't equal the given string. Unlike dontSeeInCurrentUrl, this only matches the full URL. php dontSeeCurrentUrlEquals('/'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeCurrentUrlEquals()
public cantSeeCurrentUrlEquals ( $uri )
$uri Conditional Assertion: Test won't be stopped on fail

cantSeeCurrentUrlMatches() 공개 메소드

Checks that current url doesn't match the given regular expression. php dontSeeCurrentUrlMatches('~$/users/(\d+)~'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeCurrentUrlMatches()
public cantSeeCurrentUrlMatches ( $uri )
$uri Conditional Assertion: Test won't be stopped on fail

cantSeeElement() 공개 메소드

Checks that the given element is invisible or not present on the page. You can also specify expected attributes of this element. php dontSeeElement('.error'); $I->dontSeeElement('//form/input[1]'); $I->dontSeeElement('input', ['name' => 'login']); $I->dontSeeElement('input', ['value' => '123456']); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeElement()
public cantSeeElement ( $selector, array $attributes = null )
$selector
$attributes array Conditional Assertion: Test won't be stopped on fail

cantSeeElementInDOM() 공개 메소드

Opposite of seeElementInDOM.
또한 보기: Codeception\Module\WebDriver::dontSeeElementInDOM()
public cantSeeElementInDOM ( $selector, $attributes = null )
$selector Conditional Assertion: Test won't be stopped on fail

cantSeeHttpHeader() 공개 메소드

Checks over the given HTTP header and (optionally) its value, asserting that are not there
또한 보기: Codeception\Module\REST::dontSeeHttpHeader()
public cantSeeHttpHeader ( $name, $value = null )
$name
$value

cantSeeInCurrentUrl() 공개 메소드

Checks that the current URI doesn't contain the given string. php dontSeeInCurrentUrl('/users/'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeInCurrentUrl()
public cantSeeInCurrentUrl ( $uri )
$uri Conditional Assertion: Test won't be stopped on fail

cantSeeInField() 공개 메소드

Checks that an input field or textarea doesn't contain the given value. For fuzzy locators, the field is matched by label text, CSS and XPath. php dontSeeInField('Body','Type your comment here'); $I->dontSeeInField('form textarea[name=body]','Type your comment here'); $I->dontSeeInField('form input[type=hidden]','hidden_value'); $I->dontSeeInField('#searchform input','Search'); $I->dontSeeInField('//form/*[@name=search]','Search'); $I->dontSeeInField(['name' => 'search'], 'Search'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeInField()
public cantSeeInField ( $field, $value )
$field
$value Conditional Assertion: Test won't be stopped on fail

cantSeeInFormFields() 공개 메소드

Checks if the array of form parameters (name => value) are not set on the form matched with the passed selector. php dontSeeInFormFields('form[name=myform]', [ 'input1' => 'non-existent value', 'input2' => 'other non-existent value', ]); ?> To check that an element hasn't been assigned any one of many values, an array can be passed as the value: php dontSeeInFormFields('.form-class', [ 'fieldName' => [ 'This value shouldn\'t be set', 'And this value shouldn\'t be set', ], ]); ?> Additionally, checkbox values can be checked with a boolean. php dontSeeInFormFields('#form-id', [ 'checkbox1' => true, // fails if checked 'checkbox2' => false, // fails if unchecked ]); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeInFormFields()
public cantSeeInFormFields ( $formSelector, $params )
$formSelector
$params Conditional Assertion: Test won't be stopped on fail

cantSeeInPageSource() 공개 메소드

Checks that the page source doesn't contain the given string.
또한 보기: Codeception\Module\WebDriver::dontSeeInPageSource()
public cantSeeInPageSource ( $text )
$text Conditional Assertion: Test won't be stopped on fail

cantSeeInSource() 공개 메소드

Checks that the current page contains the given string in its raw source code. php dontSeeInSource('

Green eggs & ham

');
또한 보기: Codeception\Module\WebDriver::dontSeeInSource()
public cantSeeInSource ( $raw )
$raw Conditional Assertion: Test won't be stopped on fail

cantSeeInTitle() 공개 메소드

Checks that the page title does not contain the given string.
또한 보기: Codeception\Module\WebDriver::dontSeeInTitle()
public cantSeeInTitle ( $title ) : mixed
$title
리턴 mixed Conditional Assertion: Test won't be stopped on fail

cantSeeOptionIsSelected() 공개 메소드

Checks that the given option is not selected. php dontSeeOptionIsSelected('#form input[name=payment]', 'Visa'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeOptionIsSelected()
public cantSeeOptionIsSelected ( $selector, $optionText ) : mixed
$selector
$optionText
리턴 mixed Conditional Assertion: Test won't be stopped on fail

cantSeeResponseCodeIs() 공개 메소드

Checks that response code is not equal to provided value.
또한 보기: Codeception\Module\REST::dontSeeResponseCodeIs()
public cantSeeResponseCodeIs ( $code )
$code Conditional Assertion: Test won't be stopped on fail

cantSeeResponseContains() 공개 메소드

Checks whether last response do not contain text.
또한 보기: Codeception\Module\REST::dontSeeResponseContains()
public cantSeeResponseContains ( $text )
$text

cantSeeResponseContainsJson() 공개 메소드

Opposite to seeResponseContainsJson
또한 보기: Codeception\Module\REST::dontSeeResponseContainsJson()
public cantSeeResponseContainsJson ( array $json = null )
$json array Conditional Assertion: Test won't be stopped on fail

cantSeeResponseJsonMatchesJsonPath() 공개 메소드

Opposite to seeResponseJsonMatchesJsonPath
또한 보기: Codeception\Module\REST::dontSeeResponseJsonMatchesJsonPath()
public cantSeeResponseJsonMatchesJsonPath ( array $jsonPath )
$jsonPath array

cantSeeResponseMatchesJsonType() 공개 메소드

Opposite to seeResponseMatchesJsonType.
또한 보기: seeResponseMatchesJsonType
또한 보기: Codeception\Module\REST::dontSeeResponseMatchesJsonType()
public cantSeeResponseMatchesJsonType ( $jsonType, null $jsonPath = null )
$jsonType jsonType structure
$jsonPath null optionally set specific path to structure with JsonPath

cantSeeXmlResponseEquals() 공개 메소드

Checks XML response does not equal to provided XML. Comparison is done by canonicalizing both xml`s. Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
또한 보기: Codeception\Module\REST::dontSeeXmlResponseEquals()
public cantSeeXmlResponseEquals ( $xml )
$xml

cantSeeXmlResponseIncludes() 공개 메소드

Checks XML response does not include provided XML. Comparison is done by canonicalizing both xml`s. Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
또한 보기: Codeception\Module\REST::dontSeeXmlResponseIncludes()
public cantSeeXmlResponseIncludes ( $xml )
$xml

cantSeeXmlResponseMatchesXpath() 공개 메소드

Checks wheather XML response does not match XPath php dontSeeXmlResponseMatchesXpath('//root/user[@id=1]');
또한 보기: Codeception\Module\REST::dontSeeXmlResponseMatchesXpath()
public cantSeeXmlResponseMatchesXpath ( $xpath )
$xpath Conditional Assertion: Test won't be stopped on fail

checkOption() 공개 메소드

Ticks a checkbox. For radio buttons, use the selectOption method instead. php checkOption('#agree'); ?>
또한 보기: Codeception\Module\WebDriver::checkOption()
public checkOption ( $option )
$option

click() 공개 메소드

Perform a click on a link or a button, given by a locator. If a fuzzy locator is given, the page will be searched for a button, link, or image matching the locator string. For buttons, the "value" attribute, "name" attribute, and inner text are searched. For links, the link text is searched. For images, the "alt" attribute and inner text of any parent links are searched. The second parameter is a context (CSS or XPath locator) to narrow the search. Note that if the locator matches a button of type submit, the form will be submitted. php click('Logout'); button of form $I->click('Submit'); CSS button $I->click('#form input[type=submit]'); XPath $I->click('//form/*[@type=submit]'); link in context $I->click('Logout', '#nav'); using strict locator $I->click(['link' => 'Login']); ?>
또한 보기: Codeception\Module\WebDriver::click()
public click ( $link, $context = null )
$link
$context

clickWithRightButton() 공개 메소드

Performs contextual click with the right mouse button on an element.
또한 보기: Codeception\Module\WebDriver::clickWithRightButton()
public clickWithRightButton ( $cssOrXPath )
$cssOrXPath

debugWebDriverLogs() 공개 메소드

Print out latest Selenium Logs in debug mode
또한 보기: Codeception\Module\WebDriver::debugWebDriverLogs()
public debugWebDriverLogs ( )

dontSee() 공개 메소드

Checks that the current page doesn't contain the text specified (case insensitive). Give a locator as the second parameter to match a specific region. php dontSee('Login'); // I can suppose user is already logged in $I->dontSee('Sign Up','h1'); // I can suppose it's not a signup page $I->dontSee('Sign Up','//body/h1'); // with XPath Note that the search is done after stripping all HTML tags from the body, so $I->dontSee('strong') will fail on strings like: -

I am Stronger than thou

- But will ignore strings like: - Home -
Home - For checking the raw source code, use seeInSource().
또한 보기: Codeception\Module\WebDriver::dontSee()
public dontSee ( $text, null $selector = null )
$text
$selector null

dontSeeCheckboxIsChecked() 공개 메소드

Check that the specified checkbox is unchecked. php dontSeeCheckboxIsChecked('#agree'); // I suppose user didn't agree to terms $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user didn't check the first checkbox in form. ?>
또한 보기: Codeception\Module\WebDriver::dontSeeCheckboxIsChecked()
public dontSeeCheckboxIsChecked ( $checkbox )
$checkbox

dontSeeCookie() 공개 메소드

Checks that there isn't a cookie with the given name. You can set additional cookie params like domain, path as array passed in last argument.
또한 보기: Codeception\Module\WebDriver::dontSeeCookie()
public dontSeeCookie ( $cookie, array $params = null ) : mixed
$cookie
$params array
리턴 mixed

dontSeeCurrentUrlEquals() 공개 메소드

Checks that the current URL doesn't equal the given string. Unlike dontSeeInCurrentUrl, this only matches the full URL. php dontSeeCurrentUrlEquals('/'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeCurrentUrlEquals()
public dontSeeCurrentUrlEquals ( $uri )
$uri

dontSeeCurrentUrlMatches() 공개 메소드

Checks that current url doesn't match the given regular expression. php dontSeeCurrentUrlMatches('~$/users/(\d+)~'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeCurrentUrlMatches()
public dontSeeCurrentUrlMatches ( $uri )
$uri

dontSeeElement() 공개 메소드

Checks that the given element is invisible or not present on the page. You can also specify expected attributes of this element. php dontSeeElement('.error'); $I->dontSeeElement('//form/input[1]'); $I->dontSeeElement('input', ['name' => 'login']); $I->dontSeeElement('input', ['value' => '123456']); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeElement()
public dontSeeElement ( $selector, array $attributes = null )
$selector
$attributes array

dontSeeElementInDOM() 공개 메소드

Opposite of seeElementInDOM.
또한 보기: Codeception\Module\WebDriver::dontSeeElementInDOM()
public dontSeeElementInDOM ( $selector, $attributes = null )
$selector

dontSeeHttpHeader() 공개 메소드

Checks over the given HTTP header and (optionally) its value, asserting that are not there
또한 보기: Codeception\Module\REST::dontSeeHttpHeader()
public dontSeeHttpHeader ( $name, $value = null )
$name
$value

dontSeeInCurrentUrl() 공개 메소드

Checks that the current URI doesn't contain the given string. php dontSeeInCurrentUrl('/users/'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeInCurrentUrl()
public dontSeeInCurrentUrl ( $uri )
$uri

dontSeeInField() 공개 메소드

Checks that an input field or textarea doesn't contain the given value. For fuzzy locators, the field is matched by label text, CSS and XPath. php dontSeeInField('Body','Type your comment here'); $I->dontSeeInField('form textarea[name=body]','Type your comment here'); $I->dontSeeInField('form input[type=hidden]','hidden_value'); $I->dontSeeInField('#searchform input','Search'); $I->dontSeeInField('//form/*[@name=search]','Search'); $I->dontSeeInField(['name' => 'search'], 'Search'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeInField()
public dontSeeInField ( $field, $value )
$field
$value

dontSeeInFormFields() 공개 메소드

Checks if the array of form parameters (name => value) are not set on the form matched with the passed selector. php dontSeeInFormFields('form[name=myform]', [ 'input1' => 'non-existent value', 'input2' => 'other non-existent value', ]); ?> To check that an element hasn't been assigned any one of many values, an array can be passed as the value: php dontSeeInFormFields('.form-class', [ 'fieldName' => [ 'This value shouldn\'t be set', 'And this value shouldn\'t be set', ], ]); ?> Additionally, checkbox values can be checked with a boolean. php dontSeeInFormFields('#form-id', [ 'checkbox1' => true, // fails if checked 'checkbox2' => false, // fails if unchecked ]); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeInFormFields()
public dontSeeInFormFields ( $formSelector, $params )
$formSelector
$params

dontSeeInPageSource() 공개 메소드

Checks that the page source doesn't contain the given string.
또한 보기: Codeception\Module\WebDriver::dontSeeInPageSource()
public dontSeeInPageSource ( $text )
$text

dontSeeInSource() 공개 메소드

Checks that the current page contains the given string in its raw source code. php dontSeeInSource('

Green eggs & ham

');
또한 보기: Codeception\Module\WebDriver::dontSeeInSource()
public dontSeeInSource ( $raw )
$raw

dontSeeInTitle() 공개 메소드

Checks that the page title does not contain the given string.
또한 보기: Codeception\Module\WebDriver::dontSeeInTitle()
public dontSeeInTitle ( $title ) : mixed
$title
리턴 mixed

dontSeeOptionIsSelected() 공개 메소드

Checks that the given option is not selected. php dontSeeOptionIsSelected('#form input[name=payment]', 'Visa'); ?>
또한 보기: Codeception\Module\WebDriver::dontSeeOptionIsSelected()
public dontSeeOptionIsSelected ( $selector, $optionText ) : mixed
$selector
$optionText
리턴 mixed

dontSeeResponseCodeIs() 공개 메소드

Checks that response code is not equal to provided value.
또한 보기: Codeception\Module\REST::dontSeeResponseCodeIs()
public dontSeeResponseCodeIs ( $code )
$code

dontSeeResponseContains() 공개 메소드

Checks whether last response do not contain text.
또한 보기: Codeception\Module\REST::dontSeeResponseContains()
public dontSeeResponseContains ( $text )
$text

dontSeeResponseContainsJson() 공개 메소드

Opposite to seeResponseContainsJson
또한 보기: Codeception\Module\REST::dontSeeResponseContainsJson()
public dontSeeResponseContainsJson ( array $json = null )
$json array

dontSeeResponseJsonMatchesJsonPath() 공개 메소드

Opposite to seeResponseJsonMatchesJsonPath
또한 보기: Codeception\Module\REST::dontSeeResponseJsonMatchesJsonPath()
public dontSeeResponseJsonMatchesJsonPath ( array $jsonPath )
$jsonPath array

dontSeeResponseMatchesJsonType() 공개 메소드

Opposite to seeResponseMatchesJsonType.
또한 보기: seeResponseMatchesJsonType
또한 보기: Codeception\Module\REST::dontSeeResponseMatchesJsonType()
public dontSeeResponseMatchesJsonType ( $jsonType, null $jsonPath = null )
$jsonType jsonType structure
$jsonPath null optionally set specific path to structure with JsonPath

dontSeeXmlResponseEquals() 공개 메소드

Checks XML response does not equal to provided XML. Comparison is done by canonicalizing both xml`s. Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
또한 보기: Codeception\Module\REST::dontSeeXmlResponseEquals()
public dontSeeXmlResponseEquals ( $xml )
$xml

dontSeeXmlResponseIncludes() 공개 메소드

Checks XML response does not include provided XML. Comparison is done by canonicalizing both xml`s. Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes).
또한 보기: Codeception\Module\REST::dontSeeXmlResponseIncludes()
public dontSeeXmlResponseIncludes ( $xml )
$xml

dontSeeXmlResponseMatchesXpath() 공개 메소드

Checks wheather XML response does not match XPath php dontSeeXmlResponseMatchesXpath('//root/user[@id=1]');
또한 보기: Codeception\Module\REST::dontSeeXmlResponseMatchesXpath()
public dontSeeXmlResponseMatchesXpath ( $xpath )
$xpath

doubleClick() 공개 메소드

Performs a double-click on an element matched by CSS or XPath.
또한 보기: Codeception\Module\WebDriver::doubleClick()
public doubleClick ( $cssOrXPath )
$cssOrXPath

dragAndDrop() 공개 메소드

Performs a simple mouse drag-and-drop operation. php dragAndDrop('#drag', '#drop'); ?>
또한 보기: Codeception\Module\WebDriver::dragAndDrop()
public dragAndDrop ( string $source, string $target )
$source string (CSS ID or XPath)
$target string (CSS ID or XPath)

executeInSelenium() 공개 메소드

Low-level API method. If Codeception commands are not enough, this allows you to use Selenium WebDriver methods directly: php $I->executeInSelenium(function(\Facebook\WebDriver\Remote\RemoteWebDriver $webdriver) { $webdriver->get('http://google.com'); }); This runs in the context of the RemoteWebDriver class. Try not to use this command on a regular basis. If Codeception lacks a feature you need, please implement it and submit a patch.
또한 보기: Codeception\Module\WebDriver::executeInSelenium()
public executeInSelenium ( callable $function )
$function callable

executeJS() 공개 메소드

Executes custom JavaScript. This example uses jQuery to get a value and assigns that value to a PHP variable: php executeJS('return $("#myField").val()'); ?>
또한 보기: Codeception\Module\WebDriver::executeJS()
public executeJS ( $script ) : mixed
$script
리턴 mixed

fillField() 공개 메소드

Fills a text field or textarea with the given string. php fillField("//input[@type='text']", "Hello World!"); $I->fillField(['name' => 'email'], '[email protected]'); ?>
또한 보기: Codeception\Module\WebDriver::fillField()
public fillField ( $field, $value )
$field
$value

getScenario() 추상적인 보호된 메소드

abstract protected getScenario ( ) : Codeception\Scenario
리턴 Codeception\Scenario

getVisibleText() 공개 메소드

Grabs all visible text from the current page.
또한 보기: Codeception\Module\WebDriver::getVisibleText()
public getVisibleText ( ) : string
리턴 string

grabAttributeFrom() 공개 메소드

Finds and returns attribute of element. Element is matched by either CSS or XPath
또한 보기: Codeception\Module\REST::grabAttributeFrom()
public grabAttributeFrom ( $cssOrXPath, $attribute ) : string
$cssOrXPath
$attribute
리턴 string

grabCookie() 공개 메소드

Grabs a cookie value. You can set additional cookie params like domain, path in array passed as last argument.
또한 보기: Codeception\Module\WebDriver::grabCookie()
public grabCookie ( $cookie, array $params = null ) : mixed
$cookie
$params array
리턴 mixed

grabDataFromJsonResponse() 공개 메소드

Deprecated since 2.0.9 and removed since 2.1.0
또한 보기: Codeception\Module\REST::grabDataFromJsonResponse()
사용 중단:
public grabDataFromJsonResponse ( $path )
$path

grabDataFromResponseByJsonPath() 공개 메소드

Returns data from the current JSON response using JSONPath as selector. JsonPath is XPath equivalent for querying Json structures. Try your JsonPath expressions online. Even for a single value an array is returned. This method **require flow/jsonpath > 0.2 library to be installed**. Example: php user.id in json $firstUserId = $I->grabDataFromResponseByJsonPath('$..users[0].id'); $I->sendPUT('/user', array('id' => $firstUserId[0], 'name' => 'davert')); ?>
또한 보기: Codeception\Module\REST::grabDataFromResponseByJsonPath()
public grabDataFromResponseByJsonPath ( string $jsonPath ) : array
$jsonPath string
리턴 array Array of matching items

grabFromCurrentUrl() 공개 메소드

Executes the given regular expression against the current URI and returns the first match. If no parameters are provided, the full URI is returned. php grabFromCurrentUrl('~$/user/(\d+)/~'); $uri = $I->grabFromCurrentUrl(); ?>
또한 보기: Codeception\Module\WebDriver::grabFromCurrentUrl()
public grabFromCurrentUrl ( null $uri = null ) : mixed
$uri null
리턴 mixed

grabHttpHeader() 공개 메소드

Returns the value of the specified header name
또한 보기: Codeception\Module\REST::grabHttpHeader()
public grabHttpHeader ( $name, boolean $first = null ) : string | array
$name
$first boolean Whether to return the first value or all header values
리턴 string | array The first header value if $first is true, an array of values otherwise

grabMultiple() 공개 메소드

Grabs either the text content, or attribute values, of nodes matched by $cssOrXpath and returns them as an array. html First Second Third php grabMultiple('a'); would return ['#first', '#second', '#third'] $aLinks = $I->grabMultiple('a', 'href'); ?>
또한 보기: Codeception\Module\WebDriver::grabMultiple()
public grabMultiple ( $cssOrXpath, $attribute = null ) : string[]
$cssOrXpath
$attribute
리턴 string[]

grabResponse() 공개 메소드

Returns current response so that it can be used in next scenario steps. Example: php grabResponse(); $I->sendPUT('/user', array('id' => $user_id, 'name' => 'davert')); ?>
또한 보기: Codeception\Module\REST::grabResponse()
public grabResponse ( ) : string
리턴 string

grabTextContentFromXmlElement() 공개 메소드

Finds and returns text contents of element. Element is matched by either CSS or XPath
또한 보기: Codeception\Module\REST::grabTextContentFromXmlElement()
public grabTextContentFromXmlElement ( $cssOrXPath ) : string
$cssOrXPath
리턴 string

grabTextFrom() 공개 메소드

Finds and returns the text contents of the given element. If a fuzzy locator is used, the element is found using CSS, XPath, and by matching the full page source by regular expression. php grabTextFrom('h1'); $heading = $I->grabTextFrom('descendant-or-self::h1'); $value = $I->grabTextFrom('~
또한 보기: Codeception\Module\WebDriver::grabTextFrom()
public grabTextFrom ( $cssOrXPathOrRegex ) : mixed
$cssOrXPathOrRegex
리턴 mixed

grabValueFrom() 공개 메소드

Finds the value for the given form field. If a fuzzy locator is used, the field is found by field name, CSS, and XPath. php grabValueFrom('Name'); $name = $I->grabValueFrom('input[name=username]'); $name = $I->grabValueFrom('descendant-or-self::form/descendant::input[@name = 'username']'); $name = $I->grabValueFrom(['name' => 'username']); ?>
또한 보기: Codeception\Module\WebDriver::grabValueFrom()
public grabValueFrom ( $field ) : mixed
$field
리턴 mixed

haveHttpHeader() 공개 메소드

Sets HTTP header
또한 보기: Codeception\Module\REST::haveHttpHeader()
public haveHttpHeader ( $name, $value )
$name
$value

loadSessionSnapshot() 공개 메소드

[!] Method is generated. Documentation taken from corresponding module.
또한 보기: Codeception\Module\WebDriver::loadSessionSnapshot()
public loadSessionSnapshot ( string $name ) : boolean
$name string
리턴 boolean

makeScreenshot() 공개 메소드

Takes a screenshot of the current window and saves it to tests/_output/debug. php amOnPage('/user/edit'); $I->makeScreenshot('edit_page'); saved to: tests/_output/debug/edit_page.png ?>
또한 보기: Codeception\Module\WebDriver::makeScreenshot()
public makeScreenshot ( $name )
$name

maximizeWindow() 공개 메소드

Maximizes the current window.
또한 보기: Codeception\Module\WebDriver::maximizeWindow()
public maximizeWindow ( )

moveBack() 공개 메소드

Moves back in history.
또한 보기: Codeception\Module\WebDriver::moveBack()
public moveBack ( )

moveForward() 공개 메소드

Moves forward in history.
또한 보기: Codeception\Module\WebDriver::moveForward()
public moveForward ( )

moveMouseOver() 공개 메소드

Move mouse over the first element matched by the given locator. If the second and third parameters are given, then the mouse is moved to an offset of the element's top-left corner. Otherwise, the mouse is moved to the center of the element. php moveMouseOver(['css' => '.checkout'], 20, 50); ?>
또한 보기: Codeception\Module\WebDriver::moveMouseOver()
public moveMouseOver ( string $cssOrXPath, integer $offsetX = null, integer $offsetY = null )
$cssOrXPath string css or xpath of the web element
$offsetX integer
$offsetY integer

pauseExecution() 공개 메소드

Pauses test execution in debug mode. To proceed test press "ENTER" in console. This method is useful while writing tests, since it allows you to inspect the current page in the middle of a test case.
또한 보기: Codeception\Module\WebDriver::pauseExecution()
public pauseExecution ( )

pressKey() 공개 메소드

Presses the given key on the given element. To specify a character and modifier (e.g. ctrl, alt, shift, meta), pass an array for $char with the modifier as the first element and the character as the second. For special keys use key constants from WebDriverKeys class. php $I->pressKey('#page','a'); // => olda $I->pressKey('#page',array('ctrl','a'),'new'); //=> new $I->pressKey('#page',array('shift','111'),'1','x'); //=> old!!!1x $I->pressKey('descendant-or-self::*[@id='page']','u'); //=> oldu $I->pressKey('#name', array('ctrl', 'a'), \Facebook\WebDriver\WebDriverKeys::DELETE); //=>'' ?>
또한 보기: Codeception\Module\WebDriver::pressKey()
public pressKey ( $element, $char )
$element
$char Can be char or array with modifier. You can provide several chars.

reloadPage() 공개 메소드

Reloads the current page.
또한 보기: Codeception\Module\WebDriver::reloadPage()
public reloadPage ( )

resetCookie() 공개 메소드

Unsets cookie with the given name. You can set additional cookie params like domain, path in array passed as last argument.
또한 보기: Codeception\Module\WebDriver::resetCookie()
public resetCookie ( $cookie, array $params = null ) : mixed
$cookie
$params array
리턴 mixed

resizeWindow() 공개 메소드

Resize the current window. php resizeWindow(800, 600);
또한 보기: Codeception\Module\WebDriver::resizeWindow()
public resizeWindow ( integer $width, integer $height )
$width integer
$height integer

saveSessionSnapshot() 공개 메소드

[!] Method is generated. Documentation taken from corresponding module.
또한 보기: Codeception\Module\WebDriver::saveSessionSnapshot()
public saveSessionSnapshot ( string $name )
$name string

scrollTo() 공개 메소드

Move to the middle of the given element matched by the given locator. Extra shift, calculated from the top-left corner of the element, can be set by passing $offsetX and $offsetY parameters. php scrollTo(['css' => '.checkout'], 20, 50); ?>
또한 보기: Codeception\Module\WebDriver::scrollTo()
public scrollTo ( $selector, integer $offsetX = null, integer $offsetY = null )
$selector
$offsetX integer
$offsetY integer

see() 공개 메소드

Checks that the current page contains the given string (case insensitive). You can specify a specific HTML element (via CSS or XPath) as the second parameter to only search within that element. php see('Logout'); // I can suppose user is logged in $I->see('Sign Up', 'h1'); // I can suppose it's a signup page $I->see('Sign Up', '//body/h1'); // with XPath Note that the search is done after stripping all HTML tags from the body, so $I->see('strong') will return true for strings like: -

I am Stronger than thou

- But will *not* be true for strings like: - Home -
Home - For checking the raw source code, use seeInSource().
또한 보기: Codeception\Module\WebDriver::see()
public see ( $text, null $selector = null )
$text
$selector null

seeCheckboxIsChecked() 공개 메소드

Checks that the specified checkbox is checked. php seeCheckboxIsChecked('#agree'); // I suppose user agreed to terms $I->seeCheckboxIsChecked('#signup_form input[type=checkbox]'); // I suppose user agreed to terms, If there is only one checkbox in form. $I->seeCheckboxIsChecked('//form/input[@type=checkbox and @name=agree]'); ?>
또한 보기: Codeception\Module\WebDriver::seeCheckboxIsChecked()
public seeCheckboxIsChecked ( $checkbox )
$checkbox

seeCookie() 공개 메소드

Checks that a cookie with the given name is set. You can set additional cookie params like domain, path as array passed in last argument. php seeCookie('PHPSESSID'); ?>
또한 보기: Codeception\Module\WebDriver::seeCookie()
public seeCookie ( $cookie, array $params = null ) : mixed
$cookie
$params array
리턴 mixed

seeCurrentUrlEquals() 공개 메소드

Checks that the current URL is equal to the given string. Unlike seeInCurrentUrl, this only matches the full URL. php seeCurrentUrlEquals('/'); ?>
또한 보기: Codeception\Module\WebDriver::seeCurrentUrlEquals()
public seeCurrentUrlEquals ( $uri )
$uri

seeCurrentUrlMatches() 공개 메소드

Checks that the current URL matches the given regular expression. php seeCurrentUrlMatches('~$/users/(\d+)~'); ?>
또한 보기: Codeception\Module\WebDriver::seeCurrentUrlMatches()
public seeCurrentUrlMatches ( $uri )
$uri

seeElement() 공개 메소드

Checks that the given element exists on the page and is visible. You can also specify expected attributes of this element. php seeElement('.error'); $I->seeElement('//form/input[1]'); $I->seeElement('input', ['name' => 'login']); $I->seeElement('input', ['value' => '123456']); strict locator in first arg, attributes in second $I->seeElement(['css' => 'form input'], ['name' => 'login']); ?>
또한 보기: Codeception\Module\WebDriver::seeElement()
public seeElement ( $selector, array $attributes = null )
$selector
$attributes array

seeElementInDOM() 공개 메소드

Checks that the given element exists on the page, even it is invisible. php seeElementInDOM('//form/input[type=hidden]'); ?>
또한 보기: Codeception\Module\WebDriver::seeElementInDOM()
public seeElementInDOM ( $selector, $attributes = null )
$selector

seeHttpHeader() 공개 메소드

Checks over the given HTTP header and (optionally) its value, asserting that are there
또한 보기: Codeception\Module\REST::seeHttpHeader()
public seeHttpHeader ( $name, $value = null )
$name
$value

seeHttpHeaderOnce() 공개 메소드

Checks that http response header is received only once. HTTP RFC2616 allows multiple response headers with the same name. You can check that you didn't accidentally sent the same header twice. php seeHttpHeaderOnce('Cache-Control'); ?>>
또한 보기: Codeception\Module\REST::seeHttpHeaderOnce()
public seeHttpHeaderOnce ( $name )
$name

seeInCurrentUrl() 공개 메소드

Checks that current URI contains the given string. php seeInCurrentUrl('home'); to match: /users/1 $I->seeInCurrentUrl('/users/'); ?>
또한 보기: Codeception\Module\WebDriver::seeInCurrentUrl()
public seeInCurrentUrl ( $uri )
$uri

seeInField() 공개 메소드

Checks that the given input field or textarea contains the given value. For fuzzy locators, fields are matched by label text, the "name" attribute, CSS, and XPath. php seeInField('Body','Type your comment here'); $I->seeInField('form textarea[name=body]','Type your comment here'); $I->seeInField('form input[type=hidden]','hidden_value'); $I->seeInField('#searchform input','Search'); $I->seeInField('//form/*[@name=search]','Search'); $I->seeInField(['name' => 'search'], 'Search'); ?>
또한 보기: Codeception\Module\WebDriver::seeInField()
public seeInField ( $field, $value )
$field
$value

seeInFormFields() 공개 메소드

Checks if the array of form parameters (name => value) are set on the form matched with the passed selector. php seeInFormFields('form[name=myform]', [ 'input1' => 'value', 'input2' => 'other value', ]); ?> For multi-select elements, or to check values of multiple elements with the same name, an array may be passed: php seeInFormFields('.form-class', [ 'multiselect' => [ 'value1', 'value2', ], 'checkbox[]' => [ 'a checked value', 'another checked value', ], ]); ?> Additionally, checkbox values can be checked with a boolean. php seeInFormFields('#form-id', [ 'checkbox1' => true, // passes if checked 'checkbox2' => false, // passes if unchecked ]); ?> Pair this with submitForm for quick testing magic. php 'value', 'field2' => 'another value', 'checkbox1' => true, ... ]; $I->submitForm('//form[@id=my-form]', $form, 'submitButton'); $I->amOnPage('/path/to/form-page') may be needed $I->seeInFormFields('//form[@id=my-form]', $form); ?>
또한 보기: Codeception\Module\WebDriver::seeInFormFields()
public seeInFormFields ( $formSelector, $params )
$formSelector
$params

seeInPageSource() 공개 메소드

Checks that the page source contains the given string. php seeInPageSource('
또한 보기: Codeception\Module\WebDriver::seeInPageSource()
public seeInPageSource ( $text )
$text

seeInPopup() 공개 메소드

Checks that the active JavaScript popup, as created by window.alert|window.confirm|window.prompt, contains the given string.
또한 보기: Codeception\Module\WebDriver::seeInPopup()
public seeInPopup ( $text )
$text

seeInSource() 공개 메소드

Checks that the current page contains the given string in its raw source code. php seeInSource('

Green eggs & ham

');
또한 보기: Codeception\Module\WebDriver::seeInSource()
public seeInSource ( $raw )
$raw

seeInTitle() 공개 메소드

Checks that the page title contains the given string. php seeInTitle('Blog - Post #1'); ?>
또한 보기: Codeception\Module\WebDriver::seeInTitle()
public seeInTitle ( $title ) : mixed
$title
리턴 mixed

seeNumberOfElements() 공개 메소드

Checks that there are a certain number of elements matched by the given locator on the page. php seeNumberOfElements('tr', 10); $I->seeNumberOfElements('tr', [0,10]); //between 0 and 10 elements ?>
또한 보기: Codeception\Module\WebDriver::seeNumberOfElements()
public seeNumberOfElements ( $selector, mixed $expected )
$selector
$expected mixed : - string: strict number - array: range of numbers [0,10]

seeNumberOfElementsInDOM() 공개 메소드

[!] Method is generated. Documentation taken from corresponding module.
또한 보기: Codeception\Module\WebDriver::seeNumberOfElementsInDOM()
public seeNumberOfElementsInDOM ( $selector, $expected )

seeOptionIsSelected() 공개 메소드

Checks that the given option is selected. php seeOptionIsSelected('#form input[name=payment]', 'Visa'); ?>
또한 보기: Codeception\Module\WebDriver::seeOptionIsSelected()
public seeOptionIsSelected ( $selector, $optionText ) : mixed
$selector
$optionText
리턴 mixed

seeResponseCodeIs() 공개 메소드

Checks response code equals to provided value.
또한 보기: Codeception\Module\REST::seeResponseCodeIs()
public seeResponseCodeIs ( $code )
$code

seeResponseContains() 공개 메소드

Checks whether the last response contains text.
또한 보기: Codeception\Module\REST::seeResponseContains()
public seeResponseContains ( $text )
$text

seeResponseContainsJson() 공개 메소드

Checks whether the last JSON response contains provided array. The response is converted to array with json_decode($response, true) Thus, JSON is represented by associative array. This method matches that response array contains provided array. Examples: php seeResponseContainsJson(array('name' => 'john')); response {user: john, profile: { email: [email protected] }} $I->seeResponseContainsJson(array('email' => '[email protected]')); ?> This method recursively checks if one array can be found inside of another.
또한 보기: Codeception\Module\REST::seeResponseContainsJson()
public seeResponseContainsJson ( array $json = null )
$json array

seeResponseEquals() 공개 메소드

Checks if response is exactly the same as provided.
또한 보기: Codeception\Module\REST::seeResponseEquals()
public seeResponseEquals ( $expected )

seeResponseIsJson() 공개 메소드

Checks whether last response was valid JSON. This is done with json_last_error function.
또한 보기: Codeception\Module\REST::seeResponseIsJson()
public seeResponseIsJson ( )

seeResponseIsXml() 공개 메소드

Checks whether last response was valid XML. This is done with libxml_get_last_error function.
또한 보기: Codeception\Module\REST::seeResponseIsXml()
public seeResponseIsXml ( )

seeResponseJsonMatchesJsonPath() 공개 메소드

Checks if json structure in response matches JsonPath. JsonPath is XPath equivalent for querying Json structures. Try your JsonPath expressions online. This assertion allows you to check the structure of response json. This method **require flow/jsonpath > 0.2 library to be installed**. json { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 } ], "bicycle": { "color": "red", "price": 19.95 } } } php seeResponseJsonMatchesJsonPath('$.store.book[*].author'); first book in store has author $I->seeResponseJsonMatchesJsonPath('$.store.book[0].author'); at least one item in store has price $I->seeResponseJsonMatchesJsonPath('$.store..price'); ?>
또한 보기: Codeception\Module\REST::seeResponseJsonMatchesJsonPath()
public seeResponseJsonMatchesJsonPath ( $jsonPath )

seeResponseJsonMatchesXpath() 공개 메소드

Checks if json structure in response matches the xpath provided. JSON is not supposed to be checked against XPath, yet it can be converted to xml and used with XPath. This assertion allows you to check the structure of response json. * json { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the Century", "price": 8.95 }, { "category": "fiction", "author": "Evelyn Waugh", "title": "Sword of Honour", "price": 12.99 } ], "bicycle": { "color": "red", "price": 19.95 } } } php seeResponseJsonMatchesXpath('//store/book/author'); first book in store has author $I->seeResponseJsonMatchesXpath('//store/book[1]/author'); at least one item in store has price $I->seeResponseJsonMatchesXpath('/store//price'); ?>
또한 보기: Codeception\Module\REST::seeResponseJsonMatchesXpath()
public seeResponseJsonMatchesXpath ( $xpath )

seeResponseMatchesJsonType() 공개 메소드

Checks that Json matches provided types. In case you don't know the actual values of JSON data returned you can match them by type. Starts check with a root element. If JSON data is array it will check the first element of an array. You can specify the path in the json which should be checked with JsonPath Basic example: php seeResponseMatchesJsonType([ 'user_id' => 'integer', 'name' => 'string|null', 'is_active' => 'boolean' ]); narrow down matching with JsonPath: {"users": [{ "name": "davert"}, {"id": 1}]} $I->seeResponseMatchesJsonType(['name' => 'string'], '$.users[0]'); ?> In this case you can match that record contains fields with data types you expected. The list of possible data types: * string * integer * float * array (json object is array as well) * boolean You can also use nested data type structures: php seeResponseMatchesJsonType([ 'user_id' => 'integer|string', // multiple types 'company' => ['name' => 'string'] ]); ?> You can also apply filters to check values. Filter can be applied with : char after the type declatation. Here is the list of possible filters: * integer:>{val} - checks that integer is greater than {val} (works with float and string types too). * integer:<{val} - checks that integer is lower than {val} (works with float and string types too). * string:url - checks that value is valid url. * string:date - checks that value is date in JavaScript format: https://weblog.west-wind.com/posts/2014/Jan/06/JavaScript-JSON-Date-Parsing-and-real-Dates * string:email - checks that value is a valid email according to http://emailregex.com/ * string:regex({val}) - checks that string matches a regex provided with {val} This is how filters can be used: php '[email protected]'} $I->seeResponseMatchesJsonType([ 'user_id' => 'string:>0:<1000', // multiple filters can be used 'email' => 'string:regex(~\@~)' // we just check that @ char is included ]); {'user_id': '1'} $I->seeResponseMatchesJsonType( 'user_id' => 'string:>0', // works with strings as well } ?> You can also add custom filters y accessing JsonType::addCustomFilter method. See [JsonType reference.
또한 보기: Codeception\Module\REST::seeResponseMatchesJsonType()
public seeResponseMatchesJsonType ( array $jsonType, string $jsonPath = null )
$jsonType array
$jsonPath string

seeXmlResponseEquals() 공개 메소드

Checks XML response equals provided XML. Comparison is done by canonicalizing both xml`s. Parameters can be passed either as DOMDocument, DOMNode, XML string, or array (if no attributes).
또한 보기: Codeception\Module\REST::seeXmlResponseEquals()
public seeXmlResponseEquals ( $xml )
$xml

seeXmlResponseIncludes() 공개 메소드

Checks XML response includes provided XML. Comparison is done by canonicalizing both xmls. Parameter can be passed either as XmlBuilder, DOMDocument, DOMNode, XML string, or array (if no attributes). Example: php seeXmlResponseIncludes("1"); ?> ```
또한 보기: Codeception\Module\REST::seeXmlResponseIncludes()
public seeXmlResponseIncludes ( $xml )
$xml

seeXmlResponseMatchesXpath() 공개 메소드

Checks wheather XML response matches XPath php seeXmlResponseMatchesXpath('//root/user[@id=1]');
또한 보기: Codeception\Module\REST::seeXmlResponseMatchesXpath()
public seeXmlResponseMatchesXpath ( $xpath )
$xpath

selectOption() 공개 메소드

Selects an option in a select tag or in radio button group. php selectOption('form select[name=account]', 'Premium'); $I->selectOption('form input[name=payment]', 'Monthly'); $I->selectOption('//form/select[@name=account]', 'Monthly'); ?> Provide an array for the second argument to select multiple options: php selectOption('Which OS do you use?', array('Windows','Linux')); ?>
또한 보기: Codeception\Module\WebDriver::selectOption()
public selectOption ( $select, $option )
$select
$option

sendDELETE() 공개 메소드

Sends DELETE request to given uri.
또한 보기: Codeception\Module\REST::sendDELETE()
public sendDELETE ( $url, array $params = null, array $files = null )
$url
$params array
$files array

sendGET() 공개 메소드

Sends a GET request to given uri.
또한 보기: Codeception\Module\REST::sendGET()
public sendGET ( $url, array $params = null )
$url
$params array

sendHEAD() 공개 메소드

Sends a HEAD request to given uri.
또한 보기: Codeception\Module\REST::sendHEAD()
public sendHEAD ( $url, array $params = null )
$url
$params array

sendOPTIONS() 공개 메소드

Sends an OPTIONS request to given uri.
또한 보기: Codeception\Module\REST::sendOPTIONS()
public sendOPTIONS ( $url, array $params = null )
$url
$params array

sendPATCH() 공개 메소드

Sends PATCH request to given uri.
또한 보기: Codeception\Module\REST::sendPATCH()
public sendPATCH ( $url, array $params = null, array $files = null )
$url
$params array
$files array

sendPOST() 공개 메소드

Sends a POST request to given uri. Parameters and files (as array of filenames) can be provided.
또한 보기: Codeception\Module\REST::sendPOST()
public sendPOST ( $url, array | JsonSerializable $params = null, array $files = null )
$url
$params array | JsonSerializable
$files array

sendPUT() 공개 메소드

Sends PUT request to given uri.
또한 보기: Codeception\Module\REST::sendPUT()
public sendPUT ( $url, array $params = null, array $files = null )
$url
$params array
$files array

setCookie() 공개 메소드

Sets a cookie with the given name and value. You can set additional cookie params like domain, path, expires, secure in array passed as last argument. php setCookie('PHPSESSID', 'el4ukv0kqbvoirg7nkp4dncpk3'); ?>
또한 보기: Codeception\Module\WebDriver::setCookie()
public setCookie ( $cookie, $value, array $params = null ) : mixed
$params array
리턴 mixed

startFollowingRedirects() 공개 메소드

Enables automatic redirects to be followed by the client
또한 보기: Codeception\Module\REST::startFollowingRedirects()

stopFollowingRedirects() 공개 메소드

Prevents automatic redirects to be followed by the client
또한 보기: Codeception\Module\REST::stopFollowingRedirects()

submitForm() 공개 메소드

Submits the given form on the page, optionally with the given form values. Give the form fields values as an array. Note that hidden fields can't be accessed. Skipped fields will be filled by their values from the page. You don't need to click the 'Submit' button afterwards. This command itself triggers the request to form's action. You can optionally specify what button's value to include in the request with the last parameter as an alternative to explicitly setting its value in the second parameter, as button values are not otherwise included in the request. Examples: php submitForm('#login', [ 'login' => 'davert', 'password' => '123456' ]); or $I->submitForm('#login', [ 'login' => 'davert', 'password' => '123456' ], 'submitButtonName'); For example, given this sample "Sign Up" form: html
Login:
Password:
Do you agree to our terms?
Select pricing plan:
You could write the following to submit it: php submitForm( '#userForm', [ 'user[login]' => 'Davert', 'user[password]' => '123456', 'user[agree]' => true ], 'submitButton' ); Note that "2" will be the submitted value for the "plan" field, as it is the selected option. Also note that this differs from PhpBrowser, in that 'user' => [ 'login' => 'Davert' ] is not supported at the moment. Named array keys *must* be included in the name as above. Pair this with seeInFormFields for quick testing magic. php 'value', 'field2' => 'another value', 'checkbox1' => true, ... ]; $I->submitForm('//form[@id=my-form]', $form, 'submitButton'); $I->amOnPage('/path/to/form-page') may be needed $I->seeInFormFields('//form[@id=my-form]', $form); ?> Parameter values must be set to arrays for multiple input fields of the same name, or multi-select combo boxes. For checkboxes, either the string value can be used, or boolean values which will be replaced by the checkbox's value in the DOM. php submitForm('#my-form', [ 'field1' => 'value', 'checkbox' => [ 'value of first checkbox', 'value of second checkbox, ], 'otherCheckboxes' => [ true, false, false ], 'multiselect' => [ 'first option value', 'second option value' ] ]); ?> Mixing string and boolean values for a checkbox's value is not supported and may produce unexpected results. Field names ending in "[]" must be passed without the trailing square bracket characters, and must contain an array for its value. This allows submitting multiple values with the same name, consider: php $I->submitForm('#my-form', [ 'field[]' => 'value', 'field[]' => 'another value', // 'field[]' is already a defined key ]); The solution is to pass an array value: php this way both values are submitted $I->submitForm('#my-form', [ 'field' => [ 'value', 'another value', ] ]);
또한 보기: Codeception\Module\WebDriver::submitForm()
public submitForm ( $selector, $params, $button = null )
$selector
$params
$button

switchToIFrame() 공개 메소드

Switch to another frame on the page. Example: html