diff --git a/docs/DesktopLibraryDocumentation.html b/docs/DesktopLibraryDocumentation.html
index a74080d..1397749 100644
--- a/docs/DesktopLibraryDocumentation.html
+++ b/docs/DesktopLibraryDocumentation.html
@@ -1192,7 +1192,7 @@
jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a
diff --git a/docs/MobileLibraryDocumentation.html b/docs/MobileLibraryDocumentation.html
index 08b4c7b..27fe598 100644
--- a/docs/MobileLibraryDocumentation.html
+++ b/docs/MobileLibraryDocumentation.html
@@ -1192,7 +1192,7 @@
jQuery.extend({highlight:function(e,t,n,r){if(e.nodeType===3){var i=e.data.match(t);if(i){var s=document.createElement(n||"span");s.className=r||"highlight";var o=e.splitText(i.index);o.splitText(i[0].length);var u=o.cloneNode(true);s.appendChild(u);o.parentNode.replaceChild(s,o);return 1}}else if(e.nodeType===1&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&!(e.tagName===n.toUpperCase()&&e.className===r)){for(var a=0;a
diff --git a/samples/WinAppDriver-DesktopTests.robot b/samples/WinAppDriver-DesktopTests.robot
index 7cb704d..dc96b35 100644
--- a/samples/WinAppDriver-DesktopTests.robot
+++ b/samples/WinAppDriver-DesktopTests.robot
@@ -186,6 +186,10 @@ Switch Application By Name or Locator
# Switch back to the main window to make sure it gets closed
Switch Application Main
+Working Directory Test
+ [Setup] Open Application ${REMOTE_URL} platformName=Windows deviceName=Windows app=${Notepad} appWorkingDir=C:/Windows/System32
+ Switch Application By Name ${REMOTE_URL} Notepad exact_match=False appWorkingDir=C:/Windows/System32
+
Switch Application Multiple Desktop
# Open Application creates a new desktop session for this isnatnce, useful when running tests on multiple computers
Open Application ${REMOTE_URL} platformName=Windows deviceName=Windows app=${Notepad} alias=Notepad desktop_alias=Desktop2
diff --git a/test/Desktop/test_desktop.py b/test/Desktop/test_desktop.py
index d161713..b41df16 100644
--- a/test/Desktop/test_desktop.py
+++ b/test/Desktop/test_desktop.py
@@ -63,6 +63,13 @@ def test_open_application_successful(self):
dl.open_application('remote_url')
self.assertTrue(dl._cache.current)
+ def test_open_application_with_working_dir_successful(self):
+ dl = DesktopLibrary()
+ webdriver.Remote = WebdriverRemoteMock
+ self.assertFalse(dl._cache.current)
+ dl.open_application('remote_url', appWorkingDir='C:/Windows/System32')
+ self.assertTrue(dl._cache.current)
+
def test_open_application_failure(self):
dl = DesktopLibrary()
dl._open_desktop_session = MagicMock()