microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
521 stars 288 forks source link

[HOW-TO] run easyRepro on EDGE #733

Closed xuejunh closed 4 years ago

xuejunh commented 4 years ago

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?

TYLEROL commented 4 years ago

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'.

    <!-- IE,Chrome,Firefox,Edge,Remote-->
    <add key="BrowserType" value="Edge"/>

Thanks, Tyler

Shakevg commented 4 years ago

@xuejunh, @TYLEROL For latest versions of win 10 Microsoft WebDriver for Microsoft Edge version 18 is a Windows Feature on Demand (setup form features). To install run the following in an elevated command prompt:

DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0

Also you need to set custom driver path in this case. You set driver path using app.config with latest dev version or use next code:

[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);
    }
}
xuejunh commented 4 years ago

But my install run was not successful. Please see the below and help: C:\WINDOWS\system32>DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0

Deployment Image Servicing and Management tool Version: 10.0.17763.771

Image Version: 10.0.17763.864

[==========================100.0%==========================]

Error: 0x800f0954

DISM failed. No operation was performed. For more information, review the log file.

The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log

xuejunh commented 4 years ago

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 2020-01-25 04:00:31, Info DISM PID=5396 TID=7068 DismCore.dll version: 10.0.17763.771 - CDISMManager::FinalConstruct 2020-01-25 04:00:31, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2020-01-25 04:00:31, Info DISM PID=5396 TID=7068 Successfully loaded the ImageSession at "C:\WINDOWS\system32\Dism" - CDISMManager::LoadLocalImageSession 2020-01-25 04:00:31, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=5396 TID=7068 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=5396 TID=7068 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=5396 TID=7068 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect 2020-01-25 04:00:31, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 Successfully created the local image session and provider store. - CDISMManager::CreateLocalImageSession 2020-01-25 04:00:31, Info DISM DISM.EXE: 2020-01-25 04:00:31, Info DISM DISM.EXE: <----- Starting Dism.exe session -----> 2020-01-25 04:00:31, Info DISM DISM.EXE: 2020-01-25 04:00:31, Info DISM DISM.EXE: Host machine information: OS Version=10.0.17763, Running architecture=amd64, Number of processors=8 2020-01-25 04:00:31, Info DISM DISM.EXE: Dism.exe version: 10.0.17763.771 2020-01-25 04:00:31, Info DISM DISM.EXE: Executing command line: DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=5396 TID=7068 Connecting to the provider located at C:\WINDOWS\system32\Dism\FolderProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 physical location path: C:\ - CDISMManager::CreateImageSession 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 Event name for current DISM session is Global{CD6888A3-4B8C-4075-896B-CA27E05EE3C5} - CDISMManager::CheckSessionAndLock 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 Create session event 0x1fc for current DISM session and event name is Global{CD6888A3-4B8C-4075-896B-CA27E05EE3C5} - CDISMManager::CheckSessionAndLock 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 Copying DISM from "C:\WINDOWS\System32\Dism" - CDISMManager::CreateImageSessionFromLocation 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 Successfully loaded the ImageSession at "C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B" - CDISMManager::LoadRemoteImageSession 2020-01-25 04:00:31, Info DISM DISM Image Session: PID=16872 TID=4192 Instantiating the Provider Store. - CDISMImageSession::get_ProviderStore 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Initializing a provider store for the IMAGE session type. - CDISMProviderStore::Final_OnConnect 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\OSProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM OS Provider: PID=16872 TID=4192 Defaulting SystemPath to C:\ - CDISMOSServiceManager::Final_OnConnect 2020-01-25 04:00:31, Info DISM DISM OS Provider: PID=16872 TID=4192 Defaulting Windows folder to C:\Windows - CDISMOSServiceManager::Final_OnConnect 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Attempting to initialize the logger from the Image Session. - CDISMProviderStore::Final_OnConnect 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\LogProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Found and Initialized the DISM Logger. - CDISMProviderStore::Internal_InitializeLogger 2020-01-25 04:00:31, Warning DISM DISM Provider Store: PID=16872 TID=4192 Failed to load the provider: C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\PEProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Failed to get and initialize the PE Provider. Continuing by assuming that it is not a WinPE image. - CDISMProviderStore::Final_OnConnect 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Finished initializing the Provider Map. - CDISMProviderStore::Final_OnConnect 2020-01-25 04:00:31, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2020-01-25 04:00:31, Info DISM Initialized Panther logging at C:\WINDOWS\Logs\DISM\dism.log 2020-01-25 04:00:31, Info DISM DISM Manager: PID=5396 TID=7068 Image session successfully loaded from the temporary location: C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B - CDISMManager::CreateImageSession 2020-01-25 04:00:31, Info DISM DISM.EXE: Target image information: OS Version=10.0.17763.864, Image architecture=amd64 2020-01-25 04:00:31, Info DISM DISM.EXE: Image session version: 10.0.17763.771 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Getting the collection of providers from an image provider store type. - CDISMProviderStore::GetProviderCollection 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\CbsProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info CSI 00000001 Shim considered [l:125]'\??\C:\WINDOWS\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17763.850_none_7e18264b4d00f498\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND 2020-01-25 04:00:31, Info CSI 00000002 Shim considered [l:122]'\??\C:\WINDOWS\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17763.850_none_7e18264b4d00f498\wcp.dll' : got STATUS_SUCCESS 2020-01-25 04:00:31, Info DISM DISM Package Manager: PID=16872 TID=4192 Finished initializing the CbsConUI Handler. - CCbsConUIHandler::Initialize 2020-01-25 04:00:31, Info CSI 00000001 Shim considered [l:125]'\??\C:\WINDOWS\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17763.850_none_7e18264b4d00f498\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND 2020-01-25 04:00:31, Info CSI 00000002 Shim considered [l:122]'\??\C:\WINDOWS\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17763.850_none_7e18264b4d00f498\wcp.dll' : got STATUS_SUCCESS 2020-01-25 04:00:31, Info DISM DISM Package Manager: PID=16872 TID=4192 CBS is being initialized for online use. More information about CBS actions can be located at: %windir%\logs\cbs\cbs.log - CDISMPackageManager::Initialize 2020-01-25 04:00:31, Info DISM DISM Package Manager: PID=16872 TID=4192 Loaded servicing stack for online use only. - CDISMPackageManager::CreateCbsSession 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\MsiProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\IntlProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\IBSProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\DmiProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info CSI 00000001 Shim considered [l:125]'\??\C:\WINDOWS\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17763.850_none_7e18264b4d00f498\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND 2020-01-25 04:00:31, Info CSI 00000002 Shim considered [l:122]'\??\C:\WINDOWS\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.17763.850_none_7e18264b4d00f498\wcp.dll' : got STATUS_SUCCESS 2020-01-25 04:00:31, Info DISM DISM Driver Manager: PID=16872 TID=4192 Further logs for driver related operations can be found in the target operating system at %WINDIR%\inf\setupapi.offline.log - CDriverManager::Initialize 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\UnattendProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\SmiProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Warning DISM DISM Provider Store: PID=16872 TID=4192 Failed to load the provider: C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\EmbeddedProvider.dll. - CDISMProviderStore::Internal_GetProvider(hr:0x8007007e) 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\AppxProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\ProvProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\AssocProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\GenericProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\OfflineSetupProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\SysprepProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\TransmogProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Transmog Provider: PID=16872 TID=4192 Current image session is [ONLINE] - CTransmogManager::GetMode 2020-01-25 04:00:31, Info DISM DISM Transmog Provider: PID=16872 TID=4192 Audit Mode: [No] - CTransmogManager::Initialize 2020-01-25 04:00:31, Info DISM DISM Transmog Provider: PID=16872 TID=4192 GetProductType: ProductType = [WinNT] - CTransmogManager::GetProductType 2020-01-25 04:00:31, Info DISM DISM Transmog Provider: PID=16872 TID=4192 Product Type: [WinNT] - CTransmogManager::Initialize 2020-01-25 04:00:31, Info DISM DISM Transmog Provider: PID=16872 TID=4192 Product Type ServerNT : [No] - CTransmogManager::Initialize 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Connecting to the provider located at C:\Users\xhuang\AppData\Local\Temp\6886ACB5-F81E-41F6-A714-C03F14EBB10B\SetupPlatformProvider.dll. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM Provider Store: PID=16872 TID=4192 Encountered a servicing provider, performing additional servicing initializations. - CDISMProviderStore::Internal_LoadProvider 2020-01-25 04:00:31, Info DISM DISM.EXE: Got the collection of providers. Now enumerating them to build the command table. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Log Provider 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: OSServices 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Package Manager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: DISM Package Manager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: MsiManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: MsiManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: IntlManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: IntlManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: IBSManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: DriverManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: DriverManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: DISM Unattend Manager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: DISM Unattend Manager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: SmiManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: AppxManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: AppxManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: ProvManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: ProvManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: AssocManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: AssocManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: GenericManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: GenericManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: OfflineSetupManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: OfflineSetupManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: SysprepManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: SysprepManager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: Edition Manager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: Edition Manager. 2020-01-25 04:00:31, Info DISM DISM.EXE: Attempting to add the commands from provider: SetupPlatformManager 2020-01-25 04:00:31, Info DISM DISM.EXE: Succesfully registered commands for the provider: SetupPlatformManager. 2020-01-25 04:00:31, Info DISM DISM Package Manager: PID=16872 TID=4192 Processing the top level command token(add-capability). - CPackageManagerCLIHandler::Private_ValidateCmdLine 2020-01-25 04:00:31, Info DISM DISM Package Manager: PID=16872 TID=4192 Attempting to route to appropriate command handler. - CPackageManagerCLIHandler::ExecuteCmdLine 2020-01-25 04:00:31, Info DISM DISM Package Manager: PID=16872 TID=4192 Routing the command... - CPackageManagerCLIHandler::ExecuteCmdLine 2020-01-25 04:00:32, Info DISM DISM Package Manager: PID=16872 TID=4192 CBS session options=0x40100! - CDISMPackageManager::Internal_Finalize 2020-01-25 04:03:38, Info DISM DISM Package Manager: PID=16872 TID=6528 Error in operation: (null) (CBS HRESULT=0x800f0954) - CCbsConUIHandler::Error 2020-01-25 04:03:38, Error DISM DISM Package Manager: PID=16872 TID=4192 Failed finalizing changes. - CDISMPackageManager::Internal_Finalize(hr:0x800f0954) 2020-01-25 04:03:38, Error DISM DISM Package Manager: PID=16872 TID=4192 Failed processing package changes with session options - CDISMPackageManager::ProcessChangesWithOptions(hr:0x800f0954) 2020-01-25 04:03:38, Error DISM DISM Package Manager: PID=16872 TID=4192 Failed to install capability. - CPackageManagerCLIHandler::ProcessCmdLine_AddCapability(hr:0x800f0954) 2020-01-25 04:03:38, Error DISM DISM Package Manager: PID=16872 TID=4192 Failed while processing command add-capability. - CPackageManagerCLIHandler::ExecuteCmdLine(hr:0x800f0954) 2020-01-25 04:03:38, Info DISM DISM Package Manager: PID=16872 TID=4192 Further logs for online package and feature related operations can be found at %WINDIR%\logs\CBS\cbs.log - CPackageManagerCLIHandler::ExecuteCmdLine 2020-01-25 04:03:38, Error DISM DISM.EXE: DISM Package Manager processed the command line but failed. HRESULT=800F0954 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Found the PE Provider. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(DISM Package Manager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Package Manager: PID=16872 TID=4192 Finalizing CBS core. - CDISMPackageManager::Finalize 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: DISM Package Manager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(MsiManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: MsiManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(IntlManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: IntlManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(IBSManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: IBSManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(DriverManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: DriverManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(DISM Unattend Manager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: DISM Unattend Manager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(SmiManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: SmiManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(AppxManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: AppxManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(ProvManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: ProvManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(AssocManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: AssocManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(GenericManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: GenericManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(OfflineSetupManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: OfflineSetupManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(SysprepManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: SysprepManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(Edition Manager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: Edition Manager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Finalizing the servicing provider(SetupPlatformManager) - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: SetupPlatformManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Releasing the local reference to OSServices. - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Disconnecting Provider: OSServices - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=16872 TID=4192 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Manager: PID=5396 TID=7068 Closing session event handle 0x1fc - CDISMManager::CleanupImageSessionEntry 2020-01-25 04:03:38, Info DISM DISM.EXE: Image session has been closed. Reboot required=no. 2020-01-25 04:03:38, Info DISM DISM.EXE: 2020-01-25 04:03:38, Info DISM DISM.EXE: <----- Ending Dism.exe session -----> 2020-01-25 04:03:38, Info DISM DISM.EXE: 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=5396 TID=7068 Found the OSServices. Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=5396 TID=7068 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider 2020-01-25 04:03:38, Info DISM DISM Provider Store: PID=5396 TID=7068 Releasing the local reference to DISMLogger. Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

Shakevg commented 4 years ago

@xuejunh What is Edge version do you have? You can try this if version is 18+.

xuejunh commented 4 years ago

Microsoft EdgeHTML 18.17763 is the version I have.

  1. regedit

  2. HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU

  3. UseWUServer -> 0

  4. net stop wuauserv && net start wuauserv from cmd

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

Shakevg commented 4 years ago

@xuejunh You should just save current value of UseWUServer key, then perform the same actions with old key value.

  1. regedit HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
  2. UseWUServer -> 0 (save current UseWUServer key value)
  3. net stop wuauserv && net start wuauserv from cmd
  4. DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0
  5. perform steps 1-3 with saved old UseWUServer key value

But is only fist solution that I found, you can try to search more.

xuejunh commented 4 years ago

image What is the setting for me to have the login page come up for blank user not as the above screenshot which lists all my accounts? Thanks!

xuejunh commented 4 years ago

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: [Test] public void UCITestCreateContact() { 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.ThinkTime(5000); //xrmApp.Navigation.OpenApp(UCIAppName.Sales); client.Browser.Driver.WaitForPageToLoad(); xrmApp.Navigation.OpenSubArea("Sales", "Contacts");

            xrmApp.CommandBar.ClickCommand("New");

            xrmApp.Entity.SetValue("firstname", TestSettings.GetRandomString(5, 10));
            xrmApp.Entity.SetValue("lastname", TestSettings.GetRandomString(5, 10));

            xrmApp.Entity.Save();
        }
    }
AngelRodriguez8008 commented 4 years ago

I usually use PrivateMode, where this screen is not show. But I see in code that in this case the Login method should pick the option "Use another account" and continue login as usual. image Maybe is this dialog not fully loaded at this point. What happen if you put xrmApp.ThinkTime(5000); before call the Login method?

xuejunh commented 4 years ago

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.

xuejunh commented 4 years ago

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?

xuejunh commented 4 years ago

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?

AngelRodriguez8008 commented 4 years ago

If you are already logged in, which login screen you expect to see?

xuejunh commented 4 years ago

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? @AngelRodriguez8008

AngelRodriguez8008 commented 4 years ago

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.

xuejunh commented 4 years ago

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.

AngelRodriguez8008 commented 4 years ago

You can just Log out & try again.

xuejunh commented 4 years ago

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

AngelRodriguez8008 commented 4 years ago

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.

AngelRodriguez8008 commented 4 years ago

Try the latest version, this may solve your Issue.

br

xuejunh commented 4 years ago

NuGet package not shown any new update for easyRepro yet. and today I got the following error in Edge: image Even with manual paste the url to the Edge. How to fix the issue? Thanks!

AngelRodriguez8008 commented 4 years ago

Sorry @xxuejunh,

I don't know when it will be available via NutGet. See my comment hier But you can compile the DLLs by yourself.

br

xuejunh commented 4 years ago

@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?

AngelRodriguez8008 commented 4 years ago

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 <add key="UsePrivateMode" value="true" /> This wats't passed to Edge before, now should work.

Let me know if this work for you.

br.