I’m trying to automate web tests with the autorun ui.vision.html file together with C# and Selenium WebDriver. I followed your guide: paste autorun file with parameters to address bar and everything went well…cool
But when I want to do with Selenium WebDriver in C# and fresh installation of extension, it does not work. The scenario is following:
- Start WebDriver (chromedriver) and Selenium with option
chromeOptions.AddExtension(...). That installs the UI.Vision RPA extension. OK.
- The browser is opened and chromedriver is working. .
- But when paste same autorun file via chromedriver from Selenium:
driver.Url = "file://...."I got an error message
Error #204: It seems UI.Vision RPA is not installed yet - or you need to turn on Allow access to file URLs for UI.Vision RPA in your browsers extension settings.
Sure, I did all the steps as well as follow one of your topics (Error #204 While running from script) but without success.
Then I’ve observed one thing. When the extension is installed and NOT opened yet (the main extension settings window of UI.Vision.RPA), then it throws mentioned error when autorun wants to start. In all cases. Manually, from C#…
When the settings window was sometimes already opened after installation, then the autorun will go fine.
So it seems that the extension needs to be somehow initialized before first autorun or is it normal behavior?
And from the C# Selenium WebDriver, is my suggested solution doable? So Selenium starts the chromedriver and then executes the autorun?
Thanks for suggestions.