You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void acceptAlert() PressOK on an alert, or confirms a dialog
mixed alertText() alertText($value = NULL) Gets the alert dialog text, or sets the text for a prompt dialog
void back()
\PHPUnit_Extensions_Selenium2TestCase_Element byClassName() byClassName($value)
\PHPUnit_Extensions_Selenium2TestCase_ElementbyCssSelector() byCssSelector($value)
\PHPUnit_Extensions_Selenium2TestCase_ElementbyId() byId($value)
\PHPUnit_Extensions_Selenium2TestCase_ElementbyLinkText() byLinkText($value)
\PHPUnit_Extensions_Selenium2TestCase_ElementbyName() byName($value)
\PHPUnit_Extensions_Selenium2TestCase_ElementbyTag() byTag($value)
\PHPUnit_Extensions_Selenium2TestCase_ElementbyXPath() byXPath($value)
void click() click(int $button = 0) Click any mouse button (at the coordinates set by the last moveto command).
void clickOnElement() clickOnElement($id)
string currentScreenshot() BLOB of the image file
void dismissAlert() PressCancel on an alert, or does not confirm a dialog
void doubleclick() Doubleclicks (at the coordinates set by the last moveto command).
\PHPUnit_Extensions_Selenium2TestCase_Element element() element(\PHPUnit_Extensions_Selenium2TestCase_ElementCriteria$criteria) Retrieves an element
array elements() elements(\PHPUnit_Extensions_Selenium2TestCase_ElementCriteria$criteria) Retrieves an array of Element instances
string execute() execute($javaScriptCode) Injects arbitrary JavaScript in the page and returns the last
string executeAsync() executeAsync($javaScriptCode) Injects arbitrary JavaScript and wait for the callback (last element of arguments) to be called
void forward()
void frame() frame(mixed $element) Changes the focus to a frame in the page (by frameCount of type int, htmlId of type string, htmlName of type string or element of type \PHPUnit_Extensions_Selenium2TestCase_Element)
void moveto() moveto(\PHPUnit_Extensions_Selenium2TestCase_Element$element) Move the mouse by an offset of the specificed element.
void refresh()
\PHPUnit_Extensions_Selenium2TestCase_Element_Select select() select($element)
string source() Returns the HTML source of the page\PHPUnit_Extensions_Selenium2TestCase_Session_Timeouts timeouts()
string title()
void|string url() url($url = NULL)
PHPUnit_Extensions_Selenium2TestCase_ElementCriteriausing() using($strategy) FactoryMethod for Criteria objects
void window() window($name) Changes the focus to another window
string windowHandle() Retrieves the current window handle
string windowHandles() Retrieves a list of all available window handles
string keys() Send a sequence of key strokes to the active element.
string file($file_path) Upload a local file. Returns the fully qualified path to the transferred file.
array log(string $type) Get the log for a given log type. Log buffer is reset after each request.
array logTypes() Get available log types.
void closeWindow() Close the current window.
void close() Close the current window and clear session data.
\PHPUnit_Extensions_Selenium2TestCase_Element active() Get the element on the page that currently has focus.
Hi! thanks for this, it's helps a lot.
But I have a problem when I try to extent PHPUnit_Extensions_Selenium2TestCase class, what are the dependencies to extend the class?
Hi! thanks for this, it's helps a lot.
But I have a problem when I try to extent PHPUnit_Extensions_Selenium2TestCase class, what are the dependencies to extend the class?