Skip to content

Instantly share code, notes, and snippets.

@Elise-Lennion
Created November 22, 2018 20:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elise-Lennion/fb333216c2f63ac053d24c7be915c903 to your computer and use it in GitHub Desktop.
Save Elise-Lennion/fb333216c2f63ac053d24c7be915c903 to your computer and use it in GitHub Desktop.
from django.urls import reverse
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
def test_title_redirects_to_details(self):
self.browser.get(self.live_server_url + reverse('question-list'))
title = WebDriverWait(self.browser, 5).until(
EC.element_to_be_clickable((By.CSS_SELECTOR, '#question2 .card-link-title'))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment