Skip to content

Instantly share code, notes, and snippets.

@aravindet
Last active September 11, 2022 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aravindet/7944381 to your computer and use it in GitHub Desktop.
Save aravindet/7944381 to your computer and use it in GitHub Desktop.
A list of functions in Selenium WebDriver

After spending hours trying to find a half-decent API reference for the Selenium WebDriver JS (NodeJS) API, I resorted to examining the object. Properties of the driver object:

{
	controlFlow: [Function],
	schedule: [Function],
	getSession: [Function],
	getCapabilities: [Function],
	getCapability: [Function],
	quit: [Function],
	actions: [Function],
	executeScript: [Function],
	executeAsyncScript: [Function],
	call: [Function],
	wait: [Function],
	sleep: [Function],
	getWindowHandle: [Function],
	getAllWindowHandles: [Function],
	getPageSource: [Function],
	close: [Function],
	get: [Function],
	getCurrentUrl: [Function],
	getTitle: [Function],
	findElement: [Function],
	findDomElement_: [Function],
	isElementPresent: [Function],
	findElements: [Function],
	takeScreenshot: [Function],
	manage: [Function],
	navigate: [Function],
	switchTo: [Function]
}

There you go, was that so hard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment