Пример #1
0
def load_user_instance(loop_counter):

    for raw in dict_iterator(csv_file= "demo_jobseekers.csv"):
        user = get_object(raw)
        x  = set_instance()
        browser = enter_page(x)
        browser.login(user)
        loop_counter = loop_counter -1
        if loop_counter <= 0:
            break
Пример #2
0
def user_applies_jobs(user):
    applicant = get_object_form_csv(user_name=user)
    instance = set_instance()
    browser = enter_page(instance)
    browser.login(applicant)
    browser = search_page(instance)

    for raw_job in dict_iterator("demo_jobcampains.csv"):
        job = get_object(raw_job)
        browser.search_job(job)
        browser.apply_to_job(job)
    browser.close()
Пример #3
0
def users_apply_job(campaign_name):
    job_campaign = get_object_form_csv(file_name="demo_jobcampains.csv", user_name=campaign_name)
    instance = set_instance()
    browser = enter_page(instance)

    for raw_applicant in dict_iterator():
        applicant = get_object(raw_applicant)
        if applicant.role == "jobseeker":
            browser = enter_page(instance)
            browser.login(applicant)
            browser = search_page(instance)
            browser.search_job(job_campaign)
            browser.apply_to_job(job_campaign)
            browser.logout()
    browser.close()