playwright-fluent
                                
                                
                                
                                    playwright-fluent copied to clipboard
                            
                            
                            
                        Read Playwright configuration file from fluent wrapper
Discussed in https://github.com/hdorgeval/playwright-fluent/discussions/27
Originally posted by rubyrocks-code October 31, 2022 Hello @hdorgeval
Thanks for putting this wonderful wrapper to Playwright.
I am curious if there's any workaround to allow the fluent wrapper to read the config values from playwright.config.ts files?  I see you have withOptions exposed but not sure how to use it to allow the fluent wrapper to automatically capture screenshots on test failures.  The native Playwright has this config value of 'screenshot' which could be set to only-on-failure to do the same.  Wondering how we can achieve something similar with fluent.
It would be great to have the fluent wrapper read in by default the playwright.config files or take a command line argument to read a custom config file.
Thanks!