Hi all,

I have a piece of code where if I do not call browser.getCurrentUrl(); 
between a element() and a browser.wait() then I get an "

Element is not currently interactable and may not be manipulated" exception.

Works:

const elem = element(by.xpath(selector));
browser.getCurrentUrl();
browser.wait(() => elem.clear().getText().then(text => text === ''), timeout, 
`Waiting for element '${selector}' to be cleared timed out`);

Does not work:

const elem = element(by.xpath(selector));
browser.wait(() => elem.clear().getText().then(text => text === ''), timeout, 
`Waiting for element '${selector}' to be cleared timed out`);

I wrote a Stack overflow question and I got little help there. I undertand this 
is a good place to ask this sort of questions.
https://stackoverflow.com/questions/47474983/why-do-i-get-element-not-interactable-without-browser-getcurrenturl-in-protracto

Why is this happening? Am I using Protractor wrong?

Angular: v1.2.9
Protractor: 5.1.2

Thank you,
Andrei


-- 
 


This message may contain information that is not intended for you. If you 
are not the addressee or if this message was sent to you by mistake, you 
are requested to inform the sender and delete the message. Connectis 
accepts no liability for damage of any kind resulting from the risks 
inherent in the electronic transmission of messages.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to