WebElement defines method supported by web elements.
| 370 | |
| 371 | // WebElement defines method supported by web elements. |
| 372 | type WebElement interface { |
| 373 | // Click clicks on the element. |
| 374 | Click() error |
| 375 | // SendKeys types into the element. |
| 376 | SendKeys(keys string) error |
| 377 | // Submit submits the button. |
| 378 | Submit() error |
| 379 | // Clear clears the element. |
| 380 | Clear() error |
| 381 | // MoveTo moves the mouse to relative coordinates from center of element, If |
| 382 | // the element is not visible, it will be scrolled into view. |
| 383 | MoveTo(xOffset, yOffset int) error |
| 384 | |
| 385 | // FindElement finds a child element. |
| 386 | FindElement(by, value string) (WebElement, error) |
| 387 | // FindElement finds multiple children elements. |
| 388 | FindElements(by, value string) ([]WebElement, error) |
| 389 | |
| 390 | // TagName returns the element's name. |
| 391 | TagName() (string, error) |
| 392 | // Text returns the text of the element. |
| 393 | Text() (string, error) |
| 394 | // IsSelected returns true if element is selected. |
| 395 | IsSelected() (bool, error) |
| 396 | // IsEnabled returns true if the element is enabled. |
| 397 | IsEnabled() (bool, error) |
| 398 | // IsDisplayed returns true if the element is displayed. |
| 399 | IsDisplayed() (bool, error) |
| 400 | // GetAttribute returns the named attribute of the element. |
| 401 | GetAttribute(name string) (string, error) |
| 402 | // Location returns the element's location. |
| 403 | Location() (*Point, error) |
| 404 | // LocationInView returns the element's location once it has been scrolled |
| 405 | // into view. |
| 406 | LocationInView() (*Point, error) |
| 407 | // Size returns the element's size. |
| 408 | Size() (*Size, error) |
| 409 | // CSSProperty returns the value of the specified CSS property of the |
| 410 | // element. |
| 411 | CSSProperty(name string) (string, error) |
| 412 | // Screenshot takes a screenshot of the attribute scroll'ing if necessary. |
| 413 | Screenshot(scroll bool) ([]byte, error) |
| 414 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…