Selenium + Node
Introduction to Selenium Webdriver Introduction to Node.js Installation and Environment set up NPM – Package Manage for Node.js Directory layout of Selenium Webdriver Node.js package Chrome Chrome with options Chrome in Mobile Emulation IE Firefox Element identification methodsAssertions in Selenium in Node.js Interacting with elements in Selenium in Node.js Basic Browser window automation Sending keys in Selenium in Node.js Synchronization in Selenium Check if Element exists Working with Tables using Selenium Performing advanced actions using Selenium in Node.js Executing JavaScript in Selenium in Node.js Working with multiple Browser Windows or tabs Working with multiple frames Handling alerts Common exceptions in Selenium Taking a screenshot in selenium Mocha – Unit testing framework Selenium gridDirectory layout - Selenium in node
When you install the selenium-webdriver package, selenium-webdriver directory is created in node_modules. index.js is the main file of selenium-webdriver package. Below things are exported from index.js of selenium-webdriver package.- exports.ActionSequence = actions.ActionSequence;
- exports.Browser = capabilities.Browser;
- exports.Builder = Builder;
- exports.Button = input.Button;
- exports.By = by.By;
- exports.Capabilities = capabilities.Capabilities;
- exports.Capability = capabilities.Capability;
- exports.Condition = webdriver.Condition;
- exports.EventEmitter = events.EventEmitter;
- exports.FileDetector = input.FileDetector;
- exports.Key = input.Key;
- exports.Session = session.Session;
- exports.WebDriver = webdriver.WebDriver;
- exports.WebElement = webdriver.WebElement;
- exports.WebElementCondition = webdriver.WebElementCondition;
- exports.WebElementPromise = webdriver.WebElementPromise;
- exports.error = error;
- exports.logging = logging;
- exports.promise = promise;
- exports.until = until;
- Alert: Alert
- AlertPromise: AlertPromise
- Condition: Condition
- Logs: Logs
- Navigation: Navigation
- Options: Options
- TargetLocator: TargetLocator
- Timeouts: Timeouts
- WebDriver: WebDriver
- WebElement: WebElement
- WebElementCondition: WebElementCondition
- WebElementPromise: WebElementPromise
- Window: Window
Web development and Automation testing
solutions delivered!!