imsardine / winappdriver

WebDriver for Windows Applications
MIT License
119 stars 11 forks source link

Windriver can't get access to local temp directory #19

Open stefdaems opened 9 years ago

stefdaems commented 9 years ago

Whenever I try to download an app from store using the winappdriver, I'm getting the message that the webdriver is not allowed to access the folder.

I've been trying to redirect it to another directory on which all rights are open, but no success. Event when the webdriver is started with admin rights nothing changes.

appnoaccess

stefdaems commented 9 years ago

I seems the ActivateStoreApp couldn't be found, fixed this by storing the ActivateStoreApp.exe file in the same directory as the winappdriver.

Can be closed as config issue

imsardine commented 9 years ago

@stefdaems What do you mean by "download an app from store", may I know capabilities you specified? According to the logs you provided, the error is irrelevant to app activation.

EDIT: It seems like you specified app capability, and WinAppDriver will download the installation package to the temporary folder, where %TEMP% environment variable refers to. In your case, %TEMP% refers to C:\YourTempFolder, and WinAppDriver doesn't have write/delete access to that folder. On my computer, the variable refers to %USERPROFILE%\AppData\Local\Temp

stefdaems commented 9 years ago

If in "app" capability I'm providing the URL towards the app in the play store. Am I right to say the winappdriver will download the app from the store and install it to the pc?

imsardine commented 9 years ago

Yes, WinAppDriver will download the installation package and install it.

However, it is expected that the installation package is a zip file.

desired_caps = {
    'platformName': 'WindowsModern',
    'app': 'http://your-build-server/path/to/your/pacakge.zip',
    'packageName': 'your-app-package-name',
}

I don't know there exists a URL pointing to a package on Window Store. May I know the desired capabilities you specified, so I can try to reproduce the error.

stefdaems commented 9 years ago

Hi,

I'm not able to get a win8 app dowloaded from the store working with the webdriver on windows10.

I download the yelo play app and start webdriver. The webdriver starts the app correctly the first time, when a the webdriver is requested to open the app.

Whenever I close the app and webdriver and restart the webdriver I reopen the app via the webdriver but then the app crashes. When I try to open the app directly it doesn't open anymore.

Any idea?

Kind regards, Stef

Verstuurd vanaf mijn iPhone

Op 21-aug.-2015 om 10:45 heeft Jeremy Kao notifications@github.com het volgende geschreven:

Yes, WinAppDriver will download the installation package and install it.

However, it is expected that the installation package is a zip file.

desired_caps = { 'platformName': 'WindowsModern', 'app': 'http://your-build-server/path/to/your/pacakge.zip', 'packageName': 'your-app-package-name', } I don't know there exists a URL pointing to a package on Window Store. May I know the desired capabilities you specified, so I can try to reproduce the error.

— Reply to this email directly or view it on GitHub.