Last updated: Oct 10, 2019 15:08
You might have wondered how to switch to and back from Fast Web directly by changes in your script. Then this is the article for you.
by Nato Vasilevski
Automation scripts that instantiate the RemoteWebDriver using the URL with "/fast" appended do not support Perfecto Extensions for Visual Analysis.
Switching to Fast Web for your Web tests has its benefits, like faster execution.
If you need to be able to switch to Fast Web and back the only thing you would need to do is to add the following:
- Go to your code
Browse to the instantiation of the Remote driver, where the URL is parsed:
RemoteWebDriver driver = new RemoteWebDriver(new URL("https://" + host + "/nexperience/perfectomobile/wd/hub"), capabilities);
This is the default instantiation you get when you create a new Perfecto Lab Selenium Project. This can vary, but you can always go for CTRL+F and search for “/nexperience/perfectomobile/wd/hub” in your code.
Add “/fast” and the end of the URL like this:
RemoteWebDriver driver = new RemoteWebDriver(new URL("https://" + host + "/nexperience/perfectomobile/wd/hub/fast"), capabilities);
That’s it. You are all done!
If you want to switch back, remove “/fast” as is was before and you are good to go.