Friday, July 19Be an Automation Engineer

Tag: Protractor

An example using Protractor

Protractor

Protractor is an end-to-end testing framework for AngularJS applications. It interacts with web application as a normal user. It is a wrapper around the WebdriverJs library of Selenium. WebdriverJs library internally uses selenium standalone server to interact with web applications and selenium standalone server in turn talk to individual browser drivers like ChromeDriver, GeckoDriver and SafariDriver etc.. » Continue Reading.

Installing node.js and npm on Windows

Installation, JavaScript, JS, Node.js, Protractor, SetUp
Installation

Installing NodeJs and NPM can be done like any other windows application using the installer downloaded from Node.js website.

Steps
  • Download the Windows installer package from Node.js website (nodejs.org).
  • Run the downloaded msi package.
  • Accept the license agreement and click NEXT a few times until you get below screen.
  • Observe that Setup window shows following packages –
  • Loggers and logging levels in protractor

    Protractor

    There are three different loggers in protractor.

    • Driver
    • Server
    • Browser

    Driver logger:Driver logger is to capture the messages logged at driver level(Logged by the webdriver). Server logger: Server logger is to capture the messages logged at selenium server console. Browser logger: Browser logger is to capture the messages logged in the Browser console.

    The logging levels available in » Continue Reading.

    Identifying Javascript errors in a webpage using Protractor

    Protractor

    Javascript errors are very common in any web application. It is possible that the Javascript errors may skip through testers eye. So, it would be better if an automation tool identify them well before they cause any problems in production.

    As Protractor was implemented using JavaScript, we can easily capture the Javascript errors from the browser’s console.

    Use the below » Continue Reading.