All Questions
210 questions
1
vote
1
answer
535
views
Protractor Mac installation Issue - protractor --version zsh: command not found: protractor
I'm interested in using Protractor for e2e testing. But running into some possible installation issues on a Mac(macOS Catalina). The main problem I'm having is when trying to verify Protractor's ...
0
votes
1
answer
45
views
how to convert a page loaded from protractor to pdf
I'm loading page like below using protractor
await browser.get(url);
I can get the page source like this const html = await browser.getPageSource();
I just want to convert the page to pdf.
what is ...
0
votes
1
answer
106
views
convert screenshot taken from protractor to pdf
I have a small code written using protractor to take screenshot. But I want to save that screenshot as a pdf. Below is my code.
await browser.get(url);
const img = await browser.takeScreenshot();
...
0
votes
1
answer
228
views
MoveToElement and click in protractor nodejs
I have to click on a checkbox in our application.Am able to successfully click in selenium java with the below code but am not able to do it in protractor nodejs. Can someone please help.
Selenium- ...
0
votes
1
answer
1k
views
Is there a way to fail one step in Allure Reports and continue the same test case execution using Jasmine Protractor framework?
I understand that this is not advisable but I have to test a big scenario and need to continue testing even if one/multiple steps fail.
I want to be able to report that accurately using Allure reports....
0
votes
1
answer
52
views
Protractor-nodejs : How to capture the dynamic text from the url
I want to capture 'PR001-CC001234' from the below URL using protractor node js.I know how to get the current url and store it in a variable. But need help in capturing the dyncamic text at the end of ...
0
votes
2
answers
259
views
How to compare a String value to a date in YYYY-MM-DD format in protractor node js
From the application, am capturing the date field in string format with the getText() function.I want to check if the captured date is less than the current date or not. Can some one pls help.
var ...
0
votes
3
answers
53
views
How to convert a value fetched from json file to a list in javascript
I have a string with comma separated values in json file and want to convert it to a list to iterate through for loop and click on each element.Please help me on this !
testdata.json :
{"...
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 = ...
0
votes
2
answers
578
views
Protractor : E/launcher - Error: WebDriverError: Timed out waiting for driver server to start
Am facing 'Unable to start a WebDriver session' when trying to execute protractor tests through chrome.After trying out all the below options, am posting here for a solution :
Triggered the run with ...
0
votes
0
answers
158
views
How to download files one by one using protractor and wait for each file to download before next download action?
it('download files', async () => {
bt.download_files.each(async function (elem) {
wait.waitForElementVisibility(elem);
elem.click();
...
5
votes
1
answer
2k
views
Getting 'E/launcher - spawn Unknown system error -86' when running chrome driver with protractor
Mac OSX version: Catalina 10.15.7
Node version: 10.18.1
NPM version: 6.13.4
Protractor version: 5.4.2
Chrome driver version: 87.0.4280.88
Chrome browser version: 87.0.4280.141 (Official Build) (x86_64)...
0
votes
0
answers
796
views
Protractor : MicrosoftEdge Driver : Error: Error: Server terminated early with status 1
I have followed the below but still not able to run Microsoft edge
In windows to download the MicrosoftEdge Webdriver for the HTML version >= 18 then follow the below steps
Open Command Prompt, ...
1
vote
0
answers
46
views
Process exit state 199 Error code in Protractor config [duplicate]
Error Description:
I/launcher - Running 1 instances of WebDriver
[16:11:17] I/direct - Using ChromeDriver directly...
[16:11:18] E/launcher - unknown error: cannot find Chrome binary
(Driver info: ...
0
votes
1
answer
359
views
How to get x and y coordinates of an element in protractor Node.js
I am trying to get the x, y coordinates of an element in protractor Node.js. But it is returning the object.
this.dragAnddrop=function (LocatorFrom,LocatorTo ) {
var xCoord=LocatorFrom.getLocation();...