I am writing test cases using selenium in python for a website, and am having trouble finding the best way to pass a correct login for each scenario. Currently I am using a wait and manually typing in the account information every time:
@given('I wait for input of correct credentials')
def step_impl(context):
WebDriverWait(context.driver, 20).until(
expected_conditions.visibility_of_elements_located(
BasePageLocators.SIDEBAR)
)
Is there a better way without having to send the information in my code? Preferably one that involves no manual input