element(by.<...>)
- id
- js
- css
- className
- name
- tagName
- model
- binding
All elements:
-
element.all()
- count()
- get(index)
- first()
- last()
- filter(fn)
- map(fn)
-
$$ = element.all(by.css())
- click
- sendKeys
- clear
- getAttribute
- getText
- not
- toBe
- toEqual
- toContain
- toMatch
- toBeDefined
- toBeTruthy
- toBeLessThan
- toBeGreaterThan
- toBeCloseTo
- toThrow
Debugging
- debugger()
- pause()
- enterRepl()
Navigating
- get(path)
- refresh()
- getLocationAbsUrl()
element.isDisplayed()
browser.driver.get(env.baseUrl + '/...') browser.driver.findElement(by...)