什么是protactor.js的内容 [英] What are the contents of protactor.js
本文介绍了什么是protactor.js的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是通过angular.js文档将 这里 ,看到一节:
I was just going through the angular.js documentation HERE and saw the section called:
多时隙transclusion
Multi-slot transclusion
和以下code。在protractor.js标签:
and the following code in the protractor.js tab:
it('should have transcluded the title and the body', function() {
var titleElement = element(by.model('title'));
titleElement.clear();
titleElement.sendKeys('TITLE');
var textElement = element(by.model('text'));
textElement.clear();
textElement.sendKeys('TEXT');
expect(element(by.binding('title')).getText()).toEqual('TITLE');
expect(element(by.binding('text')).getText()).toEqual('TEXT');
});
我只是想知道如果那棱角分明的版本的jQuery
I was just wondering if thats angular's version of jQuery
推荐答案
E2E angular.js网站的部分:
From E2E section of angular.js site:
量角器是一个Node.js的程序,并运行也用JavaScript编写的,并与节点运行终端到终端的测试。量角器使用的webdriver控制浏览器和模拟用户操作。
Protractor is a Node.js program, and runs end-to-end tests that are also written in JavaScript and run with node. Protractor uses WebDriver to control browsers and simulate user actions.
这篇关于什么是protactor.js的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文