-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresults.xml
50 lines (43 loc) · 2.94 KB
/
results.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="1" skipped="0" tests="1" time="56.242" timestamp="2025-01-02T08:16:36.338469-05:00" hostname="DESKTOP-JNVQD19"><testcase classname="tests.test_login" name="test_login_successful" time="53.731"><failure message="selenium.common.exceptions.TimeoutException: Message:">setup = <selenium.webdriver.chrome.webdriver.WebDriver (session="b78daa305c3ae3b28f75ed4a9e61aa16")>
def test_login_successful(setup):
email = os.getenv("EMAIL")
password = os.getenv("PASSWORD")
login_page = LoginPage(setup)
> login_page.login(email, password)
tests\test_login.py:29:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pages\login_page.py:56: in login
self.confirm_sign_in()
pages\login_page.py:47: in confirm_sign_in
self.click_next()
pages\login_page.py:29: in click_next
next_button = wait_for_element(self.driver, self.next_button, EC.element_to_be_clickable)
utils\browser_utils.py:31: in wait_for_element
return WebDriverWait(driver, timeout).until(condition(locator))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="b78daa305c3ae3b28f75ed4a9e61aa16")>, method = <function element_to_be_clickable.<locals>._predicate at 0x000001C5E2D66340>, message = ''
def until(self, method: Callable[[D], Union[Literal[False], T]], message: str = "") -> T:
"""Calls the method provided with the driver as an argument until the \
return value does not evaluate to ``False``.
:param method: callable(WebDriver)
:param message: optional message for :exc:`TimeoutException`
:returns: the result of the last call to `method`
:raises: :exc:`selenium.common.exceptions.TimeoutException` if timeout occurs
"""
screen = None
stacktrace = None
end_time = time.monotonic() + self._timeout
while True:
try:
value = method(self._driver)
if value:
return value
except self._ignored_exceptions as exc:
screen = getattr(exc, "screen", None)
stacktrace = getattr(exc, "stacktrace", None)
if time.monotonic() > end_time:
break
time.sleep(self._poll)
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message:
..\..\AppData\Local\Programs\Python\Python313\Lib\site-packages\selenium\webdriver\support\wait.py:105: TimeoutException</failure></testcase></testsuite></testsuites>