gulp-protractor

gulp-protractor error with chrome v54 / web driver v2.25

◇◆丶佛笑我妖孽 提交于 2020-01-17 05:22:20
问题 Due to the latest update of chrome (v54) we've noticed our protractor tests failing. We attempted to update to the latest version of gulp-protractor (v3.0.0) which in turn downloads the latest web driver (v2.25) to resolve the issue but unfortunately a new error occurs we've been unable to resolve. Everything worked fine before chrome's update. Our protractor configuration is as follows: exports.config = { // Capabilities to be passed to the webdriver instance. capabilities: { 'browserName':

gulp-protractor error with chrome v54 / web driver v2.25

落爺英雄遲暮 提交于 2020-01-17 05:22:04
问题 Due to the latest update of chrome (v54) we've noticed our protractor tests failing. We attempted to update to the latest version of gulp-protractor (v3.0.0) which in turn downloads the latest web driver (v2.25) to resolve the issue but unfortunately a new error occurs we've been unable to resolve. Everything worked fine before chrome's update. Our protractor configuration is as follows: exports.config = { // Capabilities to be passed to the webdriver instance. capabilities: { 'browserName':

Protractor - beforeAll and afterAll undefined

对着背影说爱祢 提交于 2019-12-12 09:24:44
问题 I am using Protractor with jasmine. Protractor version is 3.2.2 , I found this using the command protractor --version . How to find the jasmine version used by protractor. When I read the updgrade doc, I couldn't find the steps to upgrade jasmine, all I found is to add jasmine2 in configuration file. My configuration file looks like this exports.config = { framework: 'jasmine2', .... } But I still was not able to use beforeAll and afterAll . Am I missing anything here. Since beforeAll and

Running Gulp-Angular-Protractor without gulp.src

我的梦境 提交于 2019-12-12 05:49:33
问题 Gulp-Protractor and Gulp-Angular-Protractor can pass args and a config file to protractor. So why do I need to pass a list of files to gulp? function runProtractor(done) { var params = process.argv; var args = params.length > 3 ? [params[3], params[4]] : []; gutil.log('arguments: ' + args); gulp.src(paths.e2eFiles) .pipe(protractor({ configFile: 'protractor.local.conf.js', args: args, 'autoStartStopServer': true, 'debug': true })) .on('error', function (err) { gutil.log(gutil.colors.red("An

Protractor - Unable to access element due to fixed Top navigation bar

给你一囗甜甜゛ 提交于 2019-12-11 17:08:52
问题 I'm facing the following issue in protractor with jasmine Click/mouse hover not working because of fixed top navigation bar in my application. I need to click/perform mouse hover on a web page. Unfortunately that element is displaying behind that fixed navigation bar. So scroll till element present & click by x & y coordinates are not working. My dependencies are : protractor version 5.2.2 node 8.9.3 selenium standalone 3.13 chrome driver-2.40 chromebrowser v67 OS- Windows 10 Thanks in

Unable to launch Microsoft edge with protractor

巧了我就是萌 提交于 2019-12-11 16:31:35
问题 Unable to launch edge browser on windows 10 with protractor. edge -Microsoft EdgeHTML 15.15063 downloaded the supported edge driver from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ i.e Release 15063. here is my protractor conf file. module.exports = { //seleniumAddress: 'http://localhost:17556', keepAlive: true, seleniumArgs: ['-Dwebdriver.edge.driver=node_modules/protractor/node_modules/webdriver-manager/selenium/MicrosoftWebDriver.exe'], capabilities: {

How to test Pagination feature using Protractor

蹲街弑〆低调 提交于 2019-12-11 14:38:30
问题 Please guide me how to navigate through different pages of pagination using Protractor , i followed this blog: http://seleniumhome.blogspot.com/2013/07/how-can-we-automate-pagination-using.html, unfortunately the code is not working. Here is the code from my application: <div class="vertical-align"> <ul class="pagination no-margins"> <li class="arrow unavailable" ng-class="{unavailable: currentPage === 0 || pagedRowsTotal.length == 0}"> <a class="ng-binding" ng-click="loadPage(0)" ng-bind

Protractor - Change Browser Capabilities at RunTime

依然范特西╮ 提交于 2019-12-07 08:39:14
问题 Is there a way to change the browser capabilities within beforeEach of the protractor suite. I need to set the Capabilities.name attribute before each spec execution. 回答1: To create separate instances of the desired capabilities, such as capabilities.name, you will want to try the multiCapabilities option available via Protractor. An example would look similar to what is below and reside in the conf.js file. This allows you to submit a unique name for each test session. onPrepare: function(){

'$' selector in Protractor

假装没事ソ 提交于 2019-12-07 05:40:59
问题 I have seen in many examples like this $('.selector') and I am also using this. So what this $ variable does. This is what I got from the protractor docs. Calls to $ may be chained to find elements within a parent. There is no example in docs which use $ alone. We are using $ to chain with element selector. Also $('.selector') itself is an element, when we does this element($('.selector')) , it is an error. So how to use this $ selector in protractor. Does it have all the features of JQuery $

'$' selector in Protractor

旧时模样 提交于 2019-12-05 10:33:17
I have seen in many examples like this $('.selector') and I am also using this. So what this $ variable does. This is what I got from the protractor docs . Calls to $ may be chained to find elements within a parent. There is no example in docs which use $ alone. We are using $ to chain with element selector. Also $('.selector') itself is an element, when we does this element($('.selector')) , it is an error. So how to use this $ selector in protractor. Does it have all the features of JQuery $ . I tried $('.selector').children which says children is not a function. Any help is greatly