Commit d3ea6bea authored by dennisjl's avatar dennisjl
Browse files

Adds skeleton for seleniumtest for dark mode

parent 95f189dd
Pipeline #73813 passed with stage
in 1 minute and 1 second
import unittest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
class AgreelanceDarkMode(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome("C:/bin/chromedriver.exe")
def test_dark_mode_toggle(self):
driver = self.driver
self.assertNotIn(driver.find_element_by_class_name("custom-control-label"), driver.find_elements_by_class_name("navbar navbar-expand-lg navbar-light bg-light"))
"""toggler = driver.find_elements_by_class_name("navbar-toggler")
darkmode_click = driver.find_element_by_class_name("custom-control-label")
#assert "No results found." not in driver.page_source
def tearDown(self):
if __name__ == "__main__":
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment