I have been attempting to e2e test my basic application, but I am facing challenges with the angular-recaptcha plugin from VividCortex (https://github.com/VividCortex/angular-recaptcha).
Here is the test case I am working on:
it('should redirect to another page', function() {
browser.get('http://127.0.0.1:3000/#/');
var userName = element(by.model('auth.loginInfos.username'));
userName.sendKeys('<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="64070b0a1711090116552401070b4a070b09">[email protected]</a>');
var password = element(by.model('auth.loginInfos.password'));
password.sendKeys('consumer1');
var recapt = element(by.id('recaptcha'));
recapt.sendKeys();/* How do I set the recaptcha value to true? */
var btn = element(by.className('btn'));
btn.click();
/**
* Add your assertions here...
*/
});
As you can see, I am trying to input the recaptcha value but don't know how to proceed.
Could you offer some guidance?
NOTE: I am using Protractor for this task.
Thank you for your assistance.