You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SETTINGS_NAV_BUTTON_XPATH="//button[contains(@class, 'nav-bar__button') and .//span[contains(@class, 'settings-icon')]/svg[contains(@class, 'lucide-settings')]]"
38
+
SETTINGS_NAV_BUTTON_SELECTOR="nav.nav-bar button.nav-bar__button:nth-of-type(2)"# CSS selector for the settings button (assuming it's the second button)
38
39
APPROVAL_GRADE_INPUT_SELECTOR="input.settings__input[type='number']"# As per selenium-test-dev.md
39
40
SETTINGS_PAGE_IDENTIFIER="div.settings__container"# Assuming a container for settings page
40
41
@@ -141,16 +142,23 @@ def _initial_setup(self):
141
142
def_navigate_to_settings(self):
142
143
logger.info("Navigating to Settings page.")
143
144
try:
145
+
# Try CSS selector first
146
+
logger.info(f"Attempting to click settings button with CSS selector: {self.SETTINGS_NAV_BUTTON_SELECTOR}")
self.assertIsInstance(required_grade_step1, float, f"Step 1: Required grade should be a float, got {type(required_grade_step1)}: {required_grade_step1}")
self.assertIsInstance(required_grade_step3, float, f"Step 3: Required grade should be a float, got {type(required_grade_step3)}: {required_grade_step3}")
0 commit comments