Skip to content
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

Screenshot error on Windows #48

Open
wstagf opened this issue Apr 23, 2020 · 3 comments
Open

Screenshot error on Windows #48

wstagf opened this issue Apr 23, 2020 · 3 comments

Comments

@wstagf
Copy link

wstagf commented Apr 23, 2020

Because windows don't alow path file contains ":" the ozzie.takeScreenshot('imageName') cause error and don't create image.

test('initial counter is 0', () async { await ozzie.profilePerformance('counter0', () async { await driver.tap(loginInputFinder); await driver.enterText('thiago'); await ozzie.takeScreenshot('EfetuarLogin001'); }); });

FileSystemException: Cannot create file, path = 'ozzie/flutter/2020-04-23T20:15:31.726207-EfetuarLogin001.png' (OS Error: A sintaxe do nome do arquivo, do nome do diretório ou do rótulo do volume está incorreta.

@andrewpmoore
Copy link

":" are not valid as part of a filename on windows. I've just come across the same issue

@wstagf
Copy link
Author

wstagf commented May 12, 2020

I am added one pull request with this fix.

#49

@SoftWyer
Copy link

Is this project dead? The PR hasn't been merged in 6 months and it's a deal breaker for running tests on a Windows platform.

Whilst I could link to the PR and use it directly, it might not be worth it if this plugin is no longer supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants