Skip to content

Commit 044ab4d

Browse files
Add tests file for invokeMethod
Is not known to work.
1 parent 3e35211 commit 044ab4d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/com/invokemethod.d

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import juno.com.core;
2+
import std.exception;
3+
4+
void main() {
5+
enforce(juno.com.core.initAsClient());
6+
scope(exit) juno.com.core.shutdown();
7+
8+
auto ieApp = coCreate!(IDispatch, ExceptionPolicy.Throw)("InternetExplorer.Application");
9+
10+
invokeMethod(ieApp, "Navigate", "http://www.amazon.com");
11+
}

0 commit comments

Comments
 (0)