Skip to content

Instantly share code, notes, and snippets.

@natanielstrack
Created July 12, 2016 22:36
Show Gist options
  • Save natanielstrack/a518dc571c047a28e438cb90f0960499 to your computer and use it in GitHub Desktop.
Save natanielstrack/a518dc571c047a28e438cb90f0960499 to your computer and use it in GitHub Desktop.
class MultiVerse(unittest.TestCase):
"""docstring for PythonOrgSearch"""
def setUp(self):
self.driver = webdriver.Remote(
command_executor='http://127.0.0.1:4444/wd/hub',
desired_capabilities=DesiredCapabilities.CHROME)
def test_go_to_download_in_python_org(self):
driver = self.driver
driver.get("https://multiverseapp.herokuapp.com/multiverse/")
element = self.driver.find_element_by_class_name("toggle-sidebar")
element.click()
self.assertIn("512", driver.page_source)
def tearDonw(self):
self.driver.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment