enum Marionette::LocationStrategy

Defined in:

marionette/location_stategy.cr

Enum Members

Class = 0

Search using a the HTML class property of a given element.

ClassName = 1

Search using a the HTML class property of a given element.

Css = 2

Search using a standard CSS selector. (i.e. #some-element li:nth-child(2) > a)

ID = 3

Search using the HTML id property of the given element.

Link = 4

Use the text of a given link to search.

LinkText = 5

Use the text of a given link to search.

Name = 6

Search using the HTML name property of the given element.

PartialLinkText = 7

Use only some of a given link's text to search.

Relative = 8

Search using a relative location strategy.

TagName = 9

Search using a tag name (i.e. div or span)

Xpath = 10

Search using an XPath expression. Here is a helpful XPath cheatsheet.

Text = 11

Search using the exact text content of an element.

PartialText = 12

Search using the partial text content of an element.

Class Method Summary

Instance Method Summary

Class Method Detail

def self.convert_locator(how : LocationStrategy, what) #

[View source]
def self.escape_css(string) #

[View source]

Instance Method Detail

def class? #

[View source]
def class_name? #

[View source]
def convert_locator(what) #

[View source]
def css? #

[View source]
def id? #

[View source]
def link? #

[View source]
def link_text? #

[View source]
def name? #

[View source]
def partial_link_text? #

[View source]
def partial_text? #

[View source]
def relative? #

[View source]
def tag_name? #

[View source]
def text? #

[View source]
def xpath? #

[View source]