Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fails when using phantomjs #47

Closed
devkeydet opened this issue Nov 20, 2017 · 1 comment
Closed

Test fails when using phantomjs #47

devkeydet opened this issue Nov 20, 2017 · 1 comment

Comments

@devkeydet
Copy link

Everything runs as expected with the chrome driver, but with the phantomjs driver, I get and exception when calling the following:
xrmBrowser.LoginPage.Login(_xrmUri, _username, _password);

Here's the exception:
Test Name: TestsCrmAsyncRequestResponseSample
Test FullName: UIAutomationTests.CrmAsyncRequestResponseSampleTests.TestsCrmAsyncRequestResponseSample
Test Source: C:\github\devkeydet\CrmAsyncRequestResponseSampleV2\UIAutomationTests\CrmAsyncRequestResponseSampleTests.cs : line 27
Test Outcome: Failed
Test Duration: 0:01:12.2264863

Result StackTrace:
at Microsoft.Dynamics365.UIAutomation.Api.LoginPage.<>c.b__12_2(IWebDriver f)
at Microsoft.Dynamics365.UIAutomation.Browser.SeleniumExtensions.WaitUntilVisible(IWebDriver driver, By by, TimeSpan timeout, Action1 successCallback, Action1 failureCallback)
at Microsoft.Dynamics365.UIAutomation.Api.LoginPage.Login(IWebDriver driver, Uri uri, SecureString username, SecureString password, Action1 redirectAction) at Microsoft.Dynamics365.UIAutomation.Browser.DelegateBrowserCommand5.ExecuteCommand(IWebDriver driver, Object[] params)
at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand1.Execute[T1,T2,T3,T4,T5,T6,T7,T8,T9](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4, T5 p5, T6 p6, T7 p7, T8 p8, T9 p9) at Microsoft.Dynamics365.UIAutomation.Browser.BrowserCommand1.Execute[T1,T2,T3,T4](IWebDriver driver, T1 p1, T2 p2, T3 p3, T4 p4)
at Microsoft.Dynamics365.UIAutomation.Browser.BrowserPage.Execute[TResult,T1,T2,T3,T4](String commandName, Func`6 delegate, T1 p1, T2 p2, T3 p3, T4 p4)
at Microsoft.Dynamics365.UIAutomation.Api.LoginPage.Login(Uri uri, SecureString username, SecureString password)
at UIAutomationTests.CrmAsyncRequestResponseSampleTests.TestsCrmAsyncRequestResponseSample() in C:\github\devkeydet\CrmAsyncRequestResponseSampleV2\UIAutomationTests\CrmAsyncRequestResponseSampleTests.cs:line 27
Result Message:
Test method UIAutomationTests.CrmAsyncRequestResponseSampleTests.TestsCrmAsyncRequestResponseSample threw exception:
System.Exception: Login page failed.

@dtu11
Copy link
Member

dtu11 commented Dec 4, 2017

We've just finished up doing some extensive testing for PhantomJs and we've encountered a lot of issues centered around performance with the driver. The API's are completing but take 10-20x longer to finish which causes issues. We're evaluating other options for headless support but if you really need a headless option then I would look at running Chrome with the headless option set. I'll update the board if anything changes for PhantomJs

@dtu11 dtu11 closed this as completed Dec 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants