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 gridnpm package manager in node
NPM is a package manager for Node.js https://www.npmjs.com/ is the official website of NPM. We can use NPM to do below things.- List Node.js packages
- Search Node.js packages
- Uninstall Node.js packages
- Update Node.js packages
npm ls
To install any package, you have to use below command.
npm install <package-name>
npm install selenium-webdriver
Use below commands to set up node.js project locally.
npm init
package.json file contains all project information like main module file, name of the module, project url, authors etc. If you are behind the proxy, you will need to configure the proxy server as shown in below command.
npm config set proxy https://user:[email protected]:proxyport
Web development and Automation testing
solutions delivered!!