(self)
| 17110 | ) |
| 17111 | |
| 17112 | def _get_browser_version(self): |
| 17113 | driver_capabilities = None |
| 17114 | if hasattr(self, "driver") and hasattr(self.driver, "capabilities"): |
| 17115 | driver_capabilities = self.driver.capabilities |
| 17116 | elif hasattr(sb_config, "_browser_version"): |
| 17117 | return sb_config._browser_version |
| 17118 | else: |
| 17119 | return "(Unknown Version)" |
| 17120 | if "browserVersion" in driver_capabilities: |
| 17121 | browser_version = driver_capabilities["browserVersion"] |
| 17122 | else: |
| 17123 | browser_version = "(Unknown Version)" |
| 17124 | return browser_version |
| 17125 | |
| 17126 | def _get_driver_name_and_version(self): |
| 17127 | if not hasattr(self.driver, "capabilities"): |
no outgoing calls
no test coverage detected