Sendkeys not working in protractor because of “selenium webdriver promise defer error”jQuery deferreds and promises - .then() vs .done()What are the differences between Deferred, Promise and Future in JavaScript?Deferred versus promiseHow is a promise/defer library implemented?When should we use .then with Protractor Promise?How to get Protractor deferred Promise to work?Protractor PromisesSelenium Webdriver + Protractor + CucumberJSprotractor shardTestFiles with cucumberOpt.tags starts unnecessary webdriversJavascript Errors in Protractor and WebDriver / Selenium

What's in a druid's grove?

Examples where "thin + thin = nice and thick"

GFI outlets tripped after power outage

Did the US Climate Reference Network Show No New Warming Since 2005 in the US?

k times Fold with 3 changing extra variables

Bioluminescent microorganisms in everything

Is storing sensitive data in files instead of a database safe?

Removing a line containing a string in two columns

More than 3 domains hosted on IP

Owner keeps cutting corners and poaching workers for his other company

1kV DC Circuit - Insulation on ground wire?

How can I hint that my character isn't real?

Is it right to use the ideas of non-winning designers in a design contest?

Are language and thought the same?

Who's the Spanish voice actor for Hratli?

Is Sanskrit really the mother of all languages?

Why can't some airports handle heavy aircraft while others do it easily (same runway length)?

Why has Marx's "Das Kapital" been translated to "Capital" in English and not "The Capital"

Professor refuses to write a recommendation letter to students who haven't written a research paper with him

Why is Sojdlg123aljg a common password?

Supervisor wants me to support a diploma-thesis SW tool after I graduated

Dissuading my girlfriend from a scam

What quests do you need to stop at before you make an enemy of a faction for each faction?

What's this inadvertent thing?



Sendkeys not working in protractor because of “selenium webdriver promise defer error”


jQuery deferreds and promises - .then() vs .done()What are the differences between Deferred, Promise and Future in JavaScript?Deferred versus promiseHow is a promise/defer library implemented?When should we use .then with Protractor Promise?How to get Protractor deferred Promise to work?Protractor PromisesSelenium Webdriver + Protractor + CucumberJSprotractor shardTestFiles with cucumberOpt.tags starts unnecessary webdriversJavascript Errors in Protractor and WebDriver / Selenium






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















enter image description hereenter image description hereMy scenario is to automate three sections in the same page and each section has a radio button, drop down etc..



After filling all the fields in each section I need to click Continue button and it takes a while to load.
I have successfully completed automating two sections, but when I click Continue button in the second section to navigate to the third. I am facing the below error



 "TypeError: doneDeferred.fulfill is not a function" 


I have understood that it may be synchronisation issue.So, I used



 browser.ignoreSynchronisation=true;


Also, i tried to use



 await browser.sleep(30000).then(function() 
console.log('Hello');
);


because I thought that since its taking a while to load its not inputting the values.But strangely, it doesn't go inside the function and print the console log message.



 and this is the code in the debugger.js file:

validatePortAvailability_(port) {
if (this.debuggerValidated_)
return selenium_webdriver_1.promise.when(false);

let doneDeferred = selenium_webdriver_1.promise.defer();
// Resolve doneDeferred if port is available.
let tester = net.connect( port: port , () =>
doneDeferred.reject('Port ' + port + ' is already in use. Please
specify ' +
'another port to debug.');
);
tester.once('error', (err) =>
if (err.code === 'ECONNREFUSED')
tester
.once('close', () =>
doneDeferred.fulfill(true);
)
.end();

else
doneDeferred.reject('Unexpected failure testing for port ' +
port + ': ' + JSON.stringify(err));

);
return doneDeferred.promise.then((firstTime) =>
this.debuggerValidated_ = true;
return firstTime;
, (err) =>
console.error(err);
return process.exit(1);
);


Expected:I have pass values through sendkeys and drop down in that section and click continue button.



Actual:Its hanging in that screen and getting the above error.



I believe that the issue is with selenium webdriver promises.Can anyone help me with this?



I am still in the learning face with protractor cucumber framework.










share|improve this question


























  • Share your html and the complete error to give a better view on the problem.

    – Madhan
    Mar 28 at 5:35











  • I didn't develop a reporter and the inbuilt cucumber report is not working

    – Fury
    Mar 28 at 5:49











  • not your report. Share the html of the area you are trying to automate using protractor. And the error you get in terminal when running the test

    – Madhan
    Mar 28 at 7:03











  • Added the 3rd section where I am automating and getting that error.Its getting stuck over there.

    – Fury
    Mar 28 at 7:07











  • You have shared the code from node_modules. The problem is with your test file and not with the node_modules. Is your test failing in middle or the test itself does not start? Share your test file .

    – Madhan
    Mar 28 at 7:19


















0















enter image description hereenter image description hereMy scenario is to automate three sections in the same page and each section has a radio button, drop down etc..



After filling all the fields in each section I need to click Continue button and it takes a while to load.
I have successfully completed automating two sections, but when I click Continue button in the second section to navigate to the third. I am facing the below error



 "TypeError: doneDeferred.fulfill is not a function" 


I have understood that it may be synchronisation issue.So, I used



 browser.ignoreSynchronisation=true;


Also, i tried to use



 await browser.sleep(30000).then(function() 
console.log('Hello');
);


because I thought that since its taking a while to load its not inputting the values.But strangely, it doesn't go inside the function and print the console log message.



 and this is the code in the debugger.js file:

validatePortAvailability_(port) {
if (this.debuggerValidated_)
return selenium_webdriver_1.promise.when(false);

let doneDeferred = selenium_webdriver_1.promise.defer();
// Resolve doneDeferred if port is available.
let tester = net.connect( port: port , () =>
doneDeferred.reject('Port ' + port + ' is already in use. Please
specify ' +
'another port to debug.');
);
tester.once('error', (err) =>
if (err.code === 'ECONNREFUSED')
tester
.once('close', () =>
doneDeferred.fulfill(true);
)
.end();

else
doneDeferred.reject('Unexpected failure testing for port ' +
port + ': ' + JSON.stringify(err));

);
return doneDeferred.promise.then((firstTime) =>
this.debuggerValidated_ = true;
return firstTime;
, (err) =>
console.error(err);
return process.exit(1);
);


Expected:I have pass values through sendkeys and drop down in that section and click continue button.



Actual:Its hanging in that screen and getting the above error.



I believe that the issue is with selenium webdriver promises.Can anyone help me with this?



I am still in the learning face with protractor cucumber framework.










share|improve this question


























  • Share your html and the complete error to give a better view on the problem.

    – Madhan
    Mar 28 at 5:35











  • I didn't develop a reporter and the inbuilt cucumber report is not working

    – Fury
    Mar 28 at 5:49











  • not your report. Share the html of the area you are trying to automate using protractor. And the error you get in terminal when running the test

    – Madhan
    Mar 28 at 7:03











  • Added the 3rd section where I am automating and getting that error.Its getting stuck over there.

    – Fury
    Mar 28 at 7:07











  • You have shared the code from node_modules. The problem is with your test file and not with the node_modules. Is your test failing in middle or the test itself does not start? Share your test file .

    – Madhan
    Mar 28 at 7:19














0












0








0








enter image description hereenter image description hereMy scenario is to automate three sections in the same page and each section has a radio button, drop down etc..



After filling all the fields in each section I need to click Continue button and it takes a while to load.
I have successfully completed automating two sections, but when I click Continue button in the second section to navigate to the third. I am facing the below error



 "TypeError: doneDeferred.fulfill is not a function" 


I have understood that it may be synchronisation issue.So, I used



 browser.ignoreSynchronisation=true;


Also, i tried to use



 await browser.sleep(30000).then(function() 
console.log('Hello');
);


because I thought that since its taking a while to load its not inputting the values.But strangely, it doesn't go inside the function and print the console log message.



 and this is the code in the debugger.js file:

validatePortAvailability_(port) {
if (this.debuggerValidated_)
return selenium_webdriver_1.promise.when(false);

let doneDeferred = selenium_webdriver_1.promise.defer();
// Resolve doneDeferred if port is available.
let tester = net.connect( port: port , () =>
doneDeferred.reject('Port ' + port + ' is already in use. Please
specify ' +
'another port to debug.');
);
tester.once('error', (err) =>
if (err.code === 'ECONNREFUSED')
tester
.once('close', () =>
doneDeferred.fulfill(true);
)
.end();

else
doneDeferred.reject('Unexpected failure testing for port ' +
port + ': ' + JSON.stringify(err));

);
return doneDeferred.promise.then((firstTime) =>
this.debuggerValidated_ = true;
return firstTime;
, (err) =>
console.error(err);
return process.exit(1);
);


Expected:I have pass values through sendkeys and drop down in that section and click continue button.



Actual:Its hanging in that screen and getting the above error.



I believe that the issue is with selenium webdriver promises.Can anyone help me with this?



I am still in the learning face with protractor cucumber framework.










share|improve this question
















enter image description hereenter image description hereMy scenario is to automate three sections in the same page and each section has a radio button, drop down etc..



After filling all the fields in each section I need to click Continue button and it takes a while to load.
I have successfully completed automating two sections, but when I click Continue button in the second section to navigate to the third. I am facing the below error



 "TypeError: doneDeferred.fulfill is not a function" 


I have understood that it may be synchronisation issue.So, I used



 browser.ignoreSynchronisation=true;


Also, i tried to use



 await browser.sleep(30000).then(function() 
console.log('Hello');
);


because I thought that since its taking a while to load its not inputting the values.But strangely, it doesn't go inside the function and print the console log message.



 and this is the code in the debugger.js file:

validatePortAvailability_(port) {
if (this.debuggerValidated_)
return selenium_webdriver_1.promise.when(false);

let doneDeferred = selenium_webdriver_1.promise.defer();
// Resolve doneDeferred if port is available.
let tester = net.connect( port: port , () =>
doneDeferred.reject('Port ' + port + ' is already in use. Please
specify ' +
'another port to debug.');
);
tester.once('error', (err) =>
if (err.code === 'ECONNREFUSED')
tester
.once('close', () =>
doneDeferred.fulfill(true);
)
.end();

else
doneDeferred.reject('Unexpected failure testing for port ' +
port + ': ' + JSON.stringify(err));

);
return doneDeferred.promise.then((firstTime) =>
this.debuggerValidated_ = true;
return firstTime;
, (err) =>
console.error(err);
return process.exit(1);
);


Expected:I have pass values through sendkeys and drop down in that section and click continue button.



Actual:Its hanging in that screen and getting the above error.



I believe that the issue is with selenium webdriver promises.Can anyone help me with this?



I am still in the learning face with protractor cucumber framework.







npm promise protractor cucumberjs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 7:05







Fury

















asked Mar 28 at 5:31









FuryFury

828 bronze badges




828 bronze badges















  • Share your html and the complete error to give a better view on the problem.

    – Madhan
    Mar 28 at 5:35











  • I didn't develop a reporter and the inbuilt cucumber report is not working

    – Fury
    Mar 28 at 5:49











  • not your report. Share the html of the area you are trying to automate using protractor. And the error you get in terminal when running the test

    – Madhan
    Mar 28 at 7:03











  • Added the 3rd section where I am automating and getting that error.Its getting stuck over there.

    – Fury
    Mar 28 at 7:07











  • You have shared the code from node_modules. The problem is with your test file and not with the node_modules. Is your test failing in middle or the test itself does not start? Share your test file .

    – Madhan
    Mar 28 at 7:19


















  • Share your html and the complete error to give a better view on the problem.

    – Madhan
    Mar 28 at 5:35











  • I didn't develop a reporter and the inbuilt cucumber report is not working

    – Fury
    Mar 28 at 5:49











  • not your report. Share the html of the area you are trying to automate using protractor. And the error you get in terminal when running the test

    – Madhan
    Mar 28 at 7:03











  • Added the 3rd section where I am automating and getting that error.Its getting stuck over there.

    – Fury
    Mar 28 at 7:07











  • You have shared the code from node_modules. The problem is with your test file and not with the node_modules. Is your test failing in middle or the test itself does not start? Share your test file .

    – Madhan
    Mar 28 at 7:19

















Share your html and the complete error to give a better view on the problem.

– Madhan
Mar 28 at 5:35





Share your html and the complete error to give a better view on the problem.

– Madhan
Mar 28 at 5:35













I didn't develop a reporter and the inbuilt cucumber report is not working

– Fury
Mar 28 at 5:49





I didn't develop a reporter and the inbuilt cucumber report is not working

– Fury
Mar 28 at 5:49













not your report. Share the html of the area you are trying to automate using protractor. And the error you get in terminal when running the test

– Madhan
Mar 28 at 7:03





not your report. Share the html of the area you are trying to automate using protractor. And the error you get in terminal when running the test

– Madhan
Mar 28 at 7:03













Added the 3rd section where I am automating and getting that error.Its getting stuck over there.

– Fury
Mar 28 at 7:07





Added the 3rd section where I am automating and getting that error.Its getting stuck over there.

– Fury
Mar 28 at 7:07













You have shared the code from node_modules. The problem is with your test file and not with the node_modules. Is your test failing in middle or the test itself does not start? Share your test file .

– Madhan
Mar 28 at 7:19






You have shared the code from node_modules. The problem is with your test file and not with the node_modules. Is your test failing in middle or the test itself does not start? Share your test file .

– Madhan
Mar 28 at 7:19













0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390741%2fsendkeys-not-working-in-protractor-because-of-selenium-webdriver-promise-defer%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55390741%2fsendkeys-not-working-in-protractor-because-of-selenium-webdriver-promise-defer%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해