I am currently working on a small app that uses wallaby, the issue is that I want to set the user-agent for chrome driver but I couldn’t no matter what option(s) I pass to start_session/1 or config.exs
Having played with its source code, I noticed that wallaby hardcoded the user_agent value itself no matter what you passed to it
defp default_capabilities(opts) do user_agent = Metadata.append( "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36", opts[:metadata] )
It is meant to be used for web scraping in this case not testing
Any guide or help will be deeply appreciated.