Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
clean up and version update
Browse files Browse the repository at this point in the history
  • Loading branch information
romank0 committed Jul 18, 2018
1 parent 1727de3 commit 6e2f6f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/sst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#


__version__ = '0.2.9.5'
__version__ = '0.2.9.6'

DEVSERVER_PORT = 8120 # django devserver for internal acceptance tests

Expand Down
2 changes: 1 addition & 1 deletion src/sst/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1791,6 +1791,6 @@ def get_element_source(id_or_elem):
elem = _get_elem(id_or_elem)
return elem.get_attribute('innerHTML')


def get_browser_log():
import ipdb; ipdb.set_trace()
return _test.browser.get_log('browser')
5 changes: 2 additions & 3 deletions src/sst/browsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from selenium import webdriver
from selenium.common import exceptions as selenium_exceptions
from selenium.webdriver.common import utils
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.firefox import (
firefox_binary,
webdriver as ff_webdriver,
Expand Down Expand Up @@ -84,7 +85,6 @@ class ChromeFactory(BrowserFactory):
webdriver_class = webdriver.Chrome

def browser(self):
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
desired = DesiredCapabilities.CHROME
desired['loggingPrefs'] = { 'browser':'ALL' }
return self.webdriver_class(self.profile, capabilities=desired)
Expand All @@ -100,7 +100,7 @@ class IeFactory(BrowserFactory):
class PhantomJSFactory(BrowserFactory):

webdriver_class = webdriver.PhantomJS

def browser(self):
return self.webdriver_class(service_args=['--ignore-ssl-errors=true'])

Expand Down Expand Up @@ -215,7 +215,6 @@ def setup_for_test(self, test):
self.profile = profile

def browser(self):
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
desired = DesiredCapabilities.FIREFOX
desired['loggingPrefs'] = { 'browser':'ALL' }
return self.webdriver_class(self.profile, capabilities=desired)
Expand Down

0 comments on commit 6e2f6f2

Please sign in to comment.