The previous article wrote about asynchronously calling js code in the browser environment through webdriver. Let’s get down to business today. In fact, with executeAsyncScript, everything is ready to go. Go directly to the code: var compareImage=function(){ Return function(){ eval(arguments[0]); var canvasBase64=arguments[1]; var expectBase64str=arguments[2]
1. Use protractor to test canvas drawing (2)
Introduction: Previous article Asynchronously call js code in the browser environment through webdriver. Let’s get down to business today. In fact, with executeAsyncScript, everything is ready to go. Go directly to the code: var compareImage=function(){ return function(){ eval(arguments[0]); var canvasBase64=arguments[1]; var expectBa
##2. Test canvas drawing with protractor (1)
##Introduction: protractor is made by the Angular gang e2e's testing framework essentially uses webdriver. Testing canvas is mainly about comparing images. After searching, I couldn't find a good nodejs library, so I still used the resemblejs I used before. resemblejs uses Image and Canvas, so it cannot be used directly in nodejs. Someone on github made a node-resemble, but used a
3.
e2e test example in angularjs_AngularJS
Introduction: This article mainly introduces the e2e test examples in angularjs. This article uses Protractor to complete the e2e test. Friends in need can refer to the following[Related Q&A recommendations 】:
angular.js - Protractor reference case for beginners. Running the test file reports Error: Timeout
##javascript - Protractor simulates HTML5 drag and drop function Unsuccessful
angular.js - angular tutorial project end-to-end test run timeout error
The above is the detailed content of Recommended articles about protractor. For more information, please follow other related articles on the PHP Chinese website!