behave_manners.dpo_validator module¶
Standalone runner of ‘DPO’ structures, validate against an externally loaded Selenium WebDriver instance.
-
class
ExistingRemote
(command_executor, session_id, saved_capabilities, desired_capabilities={}, saved_w3c=None, **kwargs)¶ Bases:
selenium.webdriver.remote.webdriver.WebDriver
Remote webdriver that attaches to existing session
-
start_session
(desired_capabilities, browser_profile=None)¶ Creates a new session with the desired capabilities.
Args: - browser_name - The name of the browser to request.
- version - Which browser version to request.
- platform - Which platform to request the browser on.
- javascript_enabled - Whether the new session should support JavaScript.
- browser_profile - A selenium.webdriver.firefox.firefox_profile.FirefoxProfile object. Only used if Firefox is requested.
-
-
cmdline_main
()¶ when sun as a script, this behaves like a syntax checker for DPO files
-
import_step_modules
(paths, modules)¶ Import any python module under ‘paths’, store its names in ‘modules/xx’
This is used to implicitly register ServiceMeta classes defined in these step modules.
-
shorten_txt
(txt, maxlen)¶