Skip to main content

All Questions

0 votes
1 answer
39 views

Trying to getCurrentUrl() and open it in new tab in protractor

I have to get the url and open it in 3 new tabs. But I get errors while trying: browser.getCurrentUrl().then(url => { browser.actions().keyDown(protractor.Key.CONTROL).sendKeys('t').perform(...
Arash Ghasemi's user avatar
0 votes
1 answer
58 views

Is it possible to use protractor's by.cssContainingText for conditional text values?

I have conditional text that will change, and that don't have many similar words. Is there a way to use cssContainingText conditionally? The documents seem to indicate that only string or regex values ...
Jonni Kim's user avatar
0 votes
5 answers
154 views

how to trim values from multidimentional array

console.log(csvcontents.data.length - 8); for (let i = 7; i < csvcontents.data.length - 1; i++) { // console.log(csvcontents.data[i][0]); // arrayListFromCsvFile.push(...
Srinivas Rao's user avatar
-1 votes
2 answers
123 views

Unable to dragAndDrop using Protractor

I am unable to perform drag and drop function in my application. But something I observed, dragAndDrop is not happening it seems. Can someone look into my function and help me if anything I missed. ...
BugBee's user avatar
  • 147
1 vote
2 answers
2k views

How to check if a list contains the element passed in javascript

I want to check if the list returned from the application contains the expected element.Please let me know where am going wrong : this.verifyOptionsInDrpDwn = async function(){ var optionList = ...
Rahul's user avatar
  • 759
0 votes
2 answers
482 views

Getting error while switching to another Frame

Error:Failed: invalid argument: 'id' can not be string (Session info: chrome=88.0.4324.146) Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53' System info: host: '...
Explorer's user avatar
0 votes
2 answers
99 views

How to get the data from the First Row using Protractor

<tr ng-repeat="file in vm.model.pairingFilesWithStatus" ng-class="{'file-deleted': file.isDeleted}" class=""> <td>04</td> <td>2021</td> <...
Explorer's user avatar
1 vote
1 answer
228 views

How to create and return an array of objects using protractor page object model design and promises

I'm creating a page object model and one of the properties is all the users from a table. The table has a few columns so I'd like to parse that table and create a user object for each row, then return ...
Charles's user avatar
  • 199
0 votes
1 answer
61 views

Trying to filter an ng-repeat generated table using Protractor

I have the following structure that represents a table and am trying to filter based on the <a href> text and then <p> text: <tr ng-repeat="a in apples" class="ng-scope&...
Charles's user avatar
  • 199
0 votes
1 answer
254 views

Error when importing .js file in one folder to spec.js file in another folder

I am new to the protractor, and trying to create a project in cucumber using POM. Following is the structure of the project: In the addCustomerPage.js, I have mentioned the locators as well as the ...
Saloni Singhal's user avatar
0 votes
1 answer
48 views

How can i get the multiple .dat files in particular path in protractor

var filepath =../project/e2e/*.dat, By using this I am able to get one file at a time but I need to fetch multiple files. Instead of using this path to get the file, is there any other way to get ...
sujithra e's user avatar
0 votes
0 answers
94 views

Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined

I am getting this error while Running a protractor code. Error: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined. This ...
Anurag Jangde's user avatar
0 votes
1 answer
151 views

Getting error in protractor POM implementation

I have created 3 different files 1)config.js 2)Homepage.js 3)TestScript.js, I am getting an error while executing config.js Please help me rectify it. Test Environment versions are the following:- ...
Vaibhav Khachane's user avatar
0 votes
1 answer
357 views

Protractor unable to find config file: Error: Cannot find module '/protractor/protractor.conf_sanity.js'

Protractor version: 5.4.2 Present working directory: /protractor CLI to run the test: sudo -u protractor xvfb-run --server-args="-screen 0 1280x1024x24" -a protractor $@ File is present in the ...
Koshur's user avatar
  • 488
1 vote
0 answers
62 views

I'm getting two different error messages when i'm using page objects with different browser instances in a single test in Protractor

when i tried to use the page objects created with two browser instances, i'm getting two different errors for two different syntaxes. 1. With adding browser instance to the page object PageObject file ...
Satish Rongala's user avatar

15 30 50 per page
1
2 3 4 5
79