def accept_alert(context, text):
    bflag = Sample(context).set_alert_text(text)
    asserts.assert_false(bflag, 'Alert set text failed')
def select_pdf(context, text):
    Sample(context).select_pdf_from_menu(text)
    time.sleep(5)
def veirfy_page_title(context, pagetitle):
    asserts.assert_equals(Sample(context).get_title_current_page(), pagetitle, "Expected page is not found")
def accept_alert(context):
    bflag = Sample(context).accept_alert()
    asserts.assert_true(bflag, 'Alert Accet failed')
def click_search_btn(context, headertext):
    print(Sample(context).get_title_current_page())
    asserts.assert_true(Sample(context).verify_header_exists(headertext), "child window is not switched")
def verify_tabel_xpath(context):
    col_list = []
    for row in context.table:
        for i in range(len(row)):
            col_list.append(row[i])
        asserts.assert_true(Sample(context).verify_person_details_table_column(col_list), "column values are not matching")
def step_impl(context, windowname):
    Sample(context).switch_to_window_by_title(windowname)
def click_search_btn(context, pagetitle):
    asserts.assert_equals(Sample(context).get_child_windoe_heading(), pagetitle, "child windows is not switched")
def set_text_search_box(context, ):
    Sample(context).switch_to_window()
def set_text_search_box(context, buttonname):
    Sample(context).click_alert_button(buttonname)
    time.sleep(3)
def set_text_search_box(context, buttonname):
    Sample(context).click_new_window(buttonname)
    time.sleep(3)
def click_search_btn(context):
    Sample(context).click_button_component()
def set_text_search_box(context, text):
    Sample(context).set_text_search_box(text)