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
Quit using shdocvw.dll
(or ieframe.dll
) in tests
#302
Comments
This issue contains restoring tests using Like below: comtypes/comtypes/test/test_client.py Lines 37 to 70 in 7824449
def test_remote(self):
obj = comtypes.client.CreateObject(
UIAutomationClient.CUIAutomation().IPersist_GetClassID(),
interface=UIAutomationClient.IUIAutomation,
clsctx=comtypes.CLSCTX_INPROC_SERVER,
machine="localhost")
self.assertTrue(isinstance(obj, POINTER(UIAutomationClient.IUIAutomation)))
self.assertTrue(isinstance(obj, UIAutomationClient.IUIAutomation))
def test_server_info(self):
serverinfo = COSERVERINFO()
serverinfo.pwszName = "localhost"
pServerInfo = byref(serverinfo)
self.assertRaises(
ValueError,
comtypes.client.CreateObject,
UIAutomationClient.CUIAutomation().IPersist_GetClassID(),
machine="localhost",
pServerInfo=pServerInfo)
obj = comtypes.client.CreateObject(
UIAutomationClient.CUIAutomation().IPersist_GetClassID(),
interface=UIAutomationClient.IUIAutomation,
clsctx=comtypes.CLSCTX_INPROC_SERVER,
pServerInfo=pServerInfo)
self.assertTrue(isinstance(obj, POINTER(UIAutomationClient.IUIAutomation)))
self.assertTrue(isinstance(obj, UIAutomationClient.IUIAutomation)) In most cases, I believe that testing the behavior of COM object methods is unnecessary. |
100% concur |
Ideas for
|
Internet Explorer will be end of support.
https://blogs.windows.com/windowsexperience/2021/05/19/the-future-of-internet-explorer-on-windows-10-is-in-microsoft-edge/
Currently, some tests using IE were skipped, (see #267 (comment) by @dmwyatt, #271, #298)
However, there still remains tests using
shdocvw.dll
(ieframe.dll
), which provides IE and web browser classes.This will likely cause us to inadvertently use the IE class.
To be samples for testing, there is no need to use the DLL, and we plan to replace it with something more universal.
The text was updated successfully, but these errors were encountered: