安装Microsfts Webdriver与Python模块Selenium一起使用时出错

时间:2018-11-22 14:01:02

标签: python windows selenium

按照以下链接中的说明,我尝试将Python的硒模块与MS Edge结合使用:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/

我得到:

C:\Windows\system32>DISM.exe /Online /Add-Capability /CapabilityName:Microsoft.WebDriver~~~~0.0.1.0

Deployment Image Servicing and Management tool
Version: 10.0.17134.1

Image Version: 10.0.17134.407


Error: 87

A Windows capability name was not recognized.

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

关于从这里去哪里我有些迷茫。

整个日志内容使我超出了字符数限制,因此以下是最后几行:

CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: AppxManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(ProvManager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: ProvManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(AssocManager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: AssocManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(GenericManager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: GenericManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(OfflineSetupManager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: OfflineSetupManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(SysprepManager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: SysprepManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(Edition Manager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: Edition Manager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Finalizing the servicing provider(SetupPlatformManager) - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: SetupPlatformManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Releasing the local reference to OSServices. - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Disconnecting Provider: OSServices - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=13040 TID=13388 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Manager: PID=16172 TID=14536 Closing session event handle 0x1a4 - CDISMManager::CleanupImageSessionEntry
2018-11-22 13:39:15, Info                  DISM   DISM.EXE: Image session has been closed. Reboot required=no.
2018-11-22 13:39:15, Info                  DISM   DISM.EXE: 
2018-11-22 13:39:15, Info                  DISM   DISM.EXE: <----- Ending Dism.exe session ----->
2018-11-22 13:39:15, Info                  DISM   DISM.EXE: 
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=16172 TID=14536 Found the OSServices.  Waiting to finalize it until all other providers are unloaded. - CDISMProviderStore::Final_OnDisconnect
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=16172 TID=14536 Disconnecting Provider: FolderManager - CDISMProviderStore::Internal_DisconnectProvider
2018-11-22 13:39:15, Info                  DISM   DISM Provider Store: PID=16172 TID=14536 Releasing the local reference to DISMLogger.  Stop logging. - CDISMProviderStore::Internal_DisconnectProvider

0 个答案:

没有答案