You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
I am testing an application written predominantly in angularjs however some elements of the application are written in .NET C#, such as the login form.
My question is this.
Can I leverage Protractor and test my application fully with e2e testing.
I have tried using protractor and I am happy with it thus far. However I do not seem to be able to test a page that written in .NET. I am not sure if this is because protractor only tests the elements of an angular application or if it is the way I have written my tests.
I have tried searching for the elements in the page like the example below.
But this only returns an UnknownError: javascript error: cannot call method 'get' of undefined.
I know that this error means the elements are not visible on the page, however I have placed a timeout in my test shown below to see if this helps. I have also tried sleep(5000) but this doesn't help either.
it('test if div apears', function () {
ptor = protractor.getInstance();
ptor.get('/Test/Index');
var text = ptor.findElement(protractor.By.xpath('/html/body/div/div[1]/section/input')).sendKeys('xxx');
expect(text).toEqual('Index');
}, 10000);
all I require is to be able to add text to a dynamically created input box, created by Html.TextBoxFor()