79184297

Date: 2024-11-13 09:53:01
Score: 1
Natty:
Report link

Checking for amount of found locators should work

def is_element_present(selector):
    if page.locator(selector).count == 0:
        // No elements were found by this selector
        returns False
    return True
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KinderAndry