Background:
- I am attempting to save browser sessions to an excel file so I can keep the session open and switch back to it from a different test suite later on. I was originally using global variables, but those are cleared out at the end of a test suite and cant be accessed in future test suites.
Progress:
- I have an excel file that saves off various browser sessions
- I have a keyword to retrieve those browser sessions in later test suites
- I attempt to switch to a saved session in later test suites
Current Issue:
- I believe these sessions are auto-converted from ChromeDriver sessions to Strings when saved in the excel.
- When I attempt to switch to one of those saved sessions, I need to pass in a WebDriver session instead of a String.
- When I try to use DriverFactory.changeWebDriver(savedSession), I get an error:
groovy.lang.MissingMethodException: No signature of method: static com.kms.katalon.core.webui.driver.DriverFactory.changeWebDriver() is applicable for argument types: (java.lang.String) values: [ChromeDriver: chrome on MAC (60eece5a63846ce173f7a30dfb7409b8)]Possible solutions: changeWebDriver(org.openqa.selenium.WebDriver), closeWebDriver()
Potential Solutions:
- Use something other than Excel Data File (something that can store and transfer WebDriver sessions without converting them)
- Figure out how to convert string back to WebDriver session
Anyone have any ideas?