Слава Україні
Glory to Ukraine
Save the World
Жыве Беларусь
Live Belarus



Урок - Web Test Case Methods

Главная » Курсы » Курс ACMF » Урок - Web Test Case Methods

Обучающий онлайн курс
ACMF

Лицензия: Лицензия Creative Commons.

failTest($message) - marks test as failed.

logout() - logouts member using the Account Logout Page.

waitForText($element, $expectedText, $error = "") - wait for text present in the $element.

 

  • assertHtml() - checks HTML strings.
  • by() - returns element by universal selector.
  • byCss() - returns element by CSS selector.
  • byXPath() - returns element by XPath selector.
  • click() - click by element.
  • getText() - return text from element by selector.
  • is() - checks if element is set on the page and displayed.
  • isAbsent() - checks if element is absent (Element not isset on page).
  • isAttribute() - checks if element has attribute with expected value.
  • isExists() - check if element is exists on the page. (Element isset on page no matter visible or hidden).
  • isHeadDescription() - checks content attribute in <meta name="description" content="">.
  • isHeadKeywords() - checks content attribute in <meta name="keywords" content="">.
  • isHeadTitle() - checks <title> content.
  • isHidden() - checks if element isset on page but not displayed.
  • isHiddenLink() - checks if hidden link has specified URL/URN and contains specified text.
  • isHiddenText() - checks if hidden text.
  • isHref() - checks href attribute.
  • isHtml() - checks inner HTML.
  • isLink() - checks that specified element is link, has specified URN or URL and has specified text.
  • isLocation() - checks current location by URL or URN.
  • isPage() - checks location, head title, head description, head keywords and page title.
  • isPageTitle() - checks current page title.
  • isSrc() - checks src attribute.
  • isText() - checks text in element.
  • isTextPresent() - checks is text present on the page.
  • isTextNotPresent() - checks is text not present on the page.
  • isTexts() - checks if elements has text and checks if last element is absent.
  • isValue() - 
  • open() - open page by URL or URN.
  • type() - send text to the element.
  • typeInWindow()- send text to the window.
  • wait() - wait for element on the page.
  • waitAbsent() - wait for element not isset on page.
  • waitIs() - wait for element on the page.
  • waitHidden() - wait for element isset on page but invisible.
  • waitLoading() - wait loading element.
  • waitAttribute() - wait specified attribute value.
  • waitValue() - wait value.
  • waitText() - wait text.
  • waitTextPresent() - wait text on the page.