I am trying to extend the RobotFramework SeleniumLibray to override open_browser method. The problem is, I am not even sure which class I should override.
Library
https://github.com/robotframework/SeleniumLibrary/blob/master/src/SeleniumLibrary/init.py
following code gives the error.
if I extend the BrowserManagementKeywords class, I am not sure what should I pass as ctx in constructor argument.
from SeleniumLibrary import SeleniumLibrary
import env
class DriverManager(SeleniumLibrary):
def open_browser(self, url, alias=None, ff_profile_dir=None):
browser = env.capabilities.get("browserName")
remote_url = env.host
desired_capabilities = env.capabilities
return super(DriverManager, self).open_browser(url, browser, alias, remote_url, desired_capabilities, ff_profile_dir)
DriverManager().open_browser("https://google.com")
Error
AttributeError: 'super' object has no attribute 'open_browser'