-
Notifications
You must be signed in to change notification settings - Fork 291
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
[HOW-TO] run easyRepro on EDGE #733
Comments
Hi @xuejunh , You'll need to download the MicrosoftWebDriver , however please note per this link you'll want the 'Microsoft Edge Legacy' driver. We have not yet validated the latest Microsoft Edge browser. To use Edge instead, update the app.config BrowserType to use 'Edge'.
Thanks, |
@xuejunh, @TYLEROL For latest versions of win 10 Microsoft WebDriver for Microsoft Edge version 18 is a Windows Feature on Demand (setup form features). DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0 Also you need to set custom driver path in this case. [TestMethod]
public void UCITestOpenActiveCase()
{
if (TestSettings.Options.BrowserType == BrowserType.Edge)
{
var edgeDriverPath = @"C:\Windows\SysWOW64\";
TestSettings.Options.DriversPath = edgeDriverPath;
}
var client = new WebClient(TestSettings.Options);
using (var xrmApp = new XrmApp(client))
{
xrmApp.OnlineLogin.Login(_xrmUri, _username, _password);
xrmApp.Navigation.OpenApp(UCIAppName.CustomerService);
xrmApp.Navigation.OpenSubArea("Service", "Cases");
xrmApp.Grid.Search("Contacted");
xrmApp.Grid.OpenRecord(0);
}
} |
But my install run was not successful. Please see the below and help: Deployment Image Servicing and Management tool Image Version: 10.0.17763.864 [==========================100.0%==========================] Error: 0x800f0954 DISM failed. No operation was performed. The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log |
2020-01-25 04:00:31, Info DISM PID=5396 TID=7068 Scratch directory set to 'C:\Users\xhuang\AppData\Local\Temp'. - CDISMManager::put_ScratchDir |
Microsoft EdgeHTML 18.17763 is the version I have.
are the above 4 steps I need to do before DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0 ? what willl the step 3 & 4 do? will these affect my other tests (Protractor, Restassured, etc?) If there are side effect how can I recover to my current computer state? @Shakevg |
@xuejunh You should just save current value of UseWUServer key, then perform the same actions with old key value.
But is only fist solution that I found, you can try to search more. |
Or say as seen above the script pops up Pick an account page not the login page as expected. I think I should modify my Edge browser settings to see login page directly. Following is my code:
|
Then there is bug in the code. I added the thinktime before call login. I can see the first pick account page disappear but instead of showing the sign in page the next, the pick account page is shown again. this is in Edge, for Chrome my script runs fine. I am using the same computer. |
Our company tech support changes my settings and now when I run my easyRepro script in Edge I do not even see the login screen. Why? |
Continued. Although I do not see my login screen in Edge when I my easyRepro script, I am logged in and the rest of my script runs. Could you explain? |
If you are already logged in, which login screen you expect to see? |
To make it clear: I run the script in Edge, I have the script ran through without seeing login page at all. I am wondering how the login mechanism works for Edge now, could you please explain? |
No matter Chrome oder Edge, if your are not running in Private Mode. The authentication once entered will be valid for the next 24h (usually). The Login Method do not "see" the "Enter Email" Dialog & move forward. For more details you can debug the Login method. UPDATE: Well that was not true at all, in some cases Chrome do not use the Default User Profile & recreate one each time, it work similar as the Incognito Mode, but i think this is not your case. |
From my experience, in Chrome, every time I run script I see the login page and the browser get closed at the end of test. But in Edge now I do not see login page pops up and I am just logged in and script ran through and then closed the browser. I could try to run tomorrow in Edge to see what happens. |
You can just Log out & try again. |
I tried to run in Edge just now. I saw Pick an Account page 2 times instead of seeing Pick an Account page then Sign in page. Could you try to fix the issue in Edge since the test need to run in Edge. Thanks! @AngelRodriguez8008 |
Sorry I'm not working in Edge at the moment but I rebuild the Login method in PR #735. You can try again after this got merged or get this specifics version & compile this yourself. |
Try the latest version, this may solve your Issue. br |
Sorry @xxuejunh, I don't know when it will be available via NutGet. See my comment hier br |
@AngelRodriguez8008 My issue above is because my Edge is not started inPrivate mode. How could I set the easyRepro script to start edge inPrivate mode? |
Hi @xuejunh, Sorry. I was sure that I answer this question, actually I change the code for you, 6 day ago in this commit. Maybe in another Issue. If you are able run the last PR set in app.config Let me know if this work for you. br. |
Our CRM project will also support EDGE. Could you provide the information on what I need to install and what are all the settings needed to run in EDGE?
The text was updated successfully, but these errors were encountered: