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 gridSelenium in node
Node.js is used to develop server side web applications using JavaScript. Node.js is a javascript run time environment. Node.js basically runs a javascript code. Node.js has an event driven architecture. Most of the methods are asynchronous. Key features of Node.js- Open source
- Cross platform
- Runs on Google’s V8 Javascript engine used in chrome browser
- Allows you to execute Javascript on server
- Uses event driven programming
- NPM is used a package manager in Node.js
Editors for Nodejs
We can use the editors like visual studio, eclipse, Intellij etc to develop Node.js applications. You can also develop the code in simple notepad or notepad++. Node.js runs on single thread. Then obvious question you may ask is how it can support multiple requests? The main point here is that even though node.js runs on single thread, all requests are handled in asynchronous manner. For example – let us say we want to do 2 tasks- task1 – Read a file1
- task2 – Write file2
Web development and Automation testing
solutions delivered!!