⏱️ Duration: 375.18s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="a412885d1fa743312fc7cbf67c2c1e80")>
orientation = 'wide'
@then(parsers.parse('I verify in publisher that {orientation} ratio is not created'))
def verify_ratio_not_created(browser, orientation):
ratios = {
"wide": PUBLISHER_ADD_WIDE_RATIO,
"square": PUBLISHER_ADD_SQUARE_RATIO,
"vertical": PUBLISHER_ADD_VERTICAL_RATIO
}
try:
> assert is_visible(browser, ratios.get(orientation))
E assert False
E + where False = is_visible(<selenium.webdriver.remote.webdriver.WebDriver (session="a412885d1fa743312fc7cbf67c2c1e80")>, ('xpath', '//*[@data-qaid="pub-add-video-ratio-wide-0"]'))
E + where ('xpath', '//*[@data-qaid="pub-add-video-ratio-wide-0"]') = <built-in method get of dict object at 0x7f1f4aba2300>('wide')
E + where <built-in method get of dict object at 0x7f1f4aba2300> = {'square': ('xpath', '//*[data-qaid="pub-add-video-ratio-square-0"]'), 'vertical': ('xpath', '//*[@data-qaid="pub-add-video-ratio-vertical-0"]'), 'wide': ('xpath', '//*[@data-qaid="pub-add-video-ratio-wide-0"]')}.get
tests/test_publisher_page.py:564: AssertionError
During handling of the above exception, another exception occurred:
fixturefunc = <function verify_ratio_not_created at 0x7f1f4ab5a7a0>
request = <FixtureRequest for <Function test_pub11_create_a_new_aspect_ratio_for_an_ai_post_in_the_publisher>>
kwargs = {'browser': <selenium.webdriver.remote.webdriver.WebDriver (session="a412885d1fa743312fc7cbf67c2c1e80")>, 'orientation': 'wide'}
def call_fixture_func(
fixturefunc: "_FixtureFunc[FixtureValue]", request: FixtureRequest, kwargs
) -> FixtureValue:
if is_generator(fixturefunc):
fixturefunc = cast(
Callable[..., Generator[FixtureValue, None, None]], fixturefunc
)
generator = fixturefunc(**kwargs)
try:
📸 Failure Screenshot:
⏱️ Duration: 88.20s
❌ Error:
browser = <selenium.webdriver.remote.webdriver.WebDriver (session="847b5f7191727bc71a1664cdd9a16567")>
@then('I assert close the button closes the pop-up')
def close_learn_popup(browser):
try:
> do_click(browser, AI_CLOSE_CROP_MODAL)
tests/test_assertion.py:427:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
helpers/common_helpers.py:200: in do_click
WebDriverWait(browser, sec, poll_frequency=0.4).until(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.support.wait.WebDriverWait (session="847b5f7191727bc71a1664cdd9a16567")>
method = <function element_to_be_clickable.<locals>._predicate at 0x7f1f49b949d0>
message = ''
def until(self, method: Callable[[WebDriver], 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)
time.sleep(self._poll)
if time.monotonic() > end_time:
break
> raise TimeoutException(message, screen, stacktrace)
E selenium.common.exceptions.TimeoutException: Message:
E Stacktrace:
E #0 0x64fe169f70ca <unknown>
E #1 0x64fe166c32b0 <unknown>
E #
📸 Failure Screenshot: