ozzie.flutter icon indicating copy to clipboard operation
ozzie.flutter copied to clipboard

Screenshot error on Windows

Open wstagf opened this issue 4 years ago • 3 comments

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.

wstagf avatar Apr 23 '20 23:04 wstagf

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

andrewpmoore avatar May 12 '20 14:05 andrewpmoore

I am added one pull request with this fix.

https://github.com/bmw-tech/ozzie.flutter/pull/49

wstagf avatar May 12 '20 17:05 wstagf

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.

SoftWyer avatar Nov 30 '20 13:11 SoftWyer