@Test(dataProvider = "testcase")
  public void testcase1(
      String uname,
      String pwd,
      String fname,
      String lname,
      String gndr,
      String db,
      String addrl1,
      String ct,
      String st,
      String zip1,
      String elig,
      String ssn,
      String enrlmnt,
      String ctzn,
      String alienno,
      String newmem,
      String f2name,
      String l2name,
      String db2,
      String gndr2,
      String ssn1,
      String enrlmnt1,
      String ctzn1,
      String alienno1,
      String newmem1,
      String rltn,
      String incmtyp,
      String empname,
      String strt,
      String citi,
      String ste,
      String zpcd,
      String amt,
      String freq,
      String stdate,
      String fnname,
      String lnname)
      throws IOException, InterruptedException {

    // @Test

    // public void testcase1() throws IOException, InterruptedException{

    hpage.click_loginbutton();

    lpage.login(uname, pwd);

    // Thread.sleep(15000);
    cpage.click();
    getting_started.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    terms_conditions.click();
    Thread.sleep(8000);
    // d.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    info_abtu.fillin(fname, lname, gndr, db, addrl1, st, ct, zip1, elig);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    refugee_moreabtu.fillin(ssn, enrlmnt, ctzn);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    // add this here if its female
    common_elements.click();
    Thread.sleep(8000);

    supportdoc_details.fillin(alienno);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    street_residence.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    year_built.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    education_details.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    bed_rooms.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    othermembers_app.fillin(newmem);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    groupmembers_app.fillin1(f2name, l2name, db2, gndr2);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    refugee_moreabtu.fillin1(ssn1, enrlmnt1, ctzn1);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    //		common_elements.click();
    //		Thread.sleep(8000);
    supportdoc_details.fillin1(alienno1);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    othermembers_app.fillin1(newmem1);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    relation_ship.fillin(rltn);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(18000);
    tax_filer.click1();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    dependency_taxreturn.select1();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    income_info.yes_income();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    income_details.fillin(incmtyp, empname, strt, citi, ste, zpcd, amt, freq, stdate);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    income_info.no_income();
    Thread.sleep(8000);

    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    add_details.fillin();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    common_elements.click();
    Thread.sleep(20000);
    common_elements.click();
    Thread.sleep(20000);
    submit_app.fillin_app(fnname, lnname);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    eligibilty_results.click();
    Thread.sleep(8000);

    Butility.takescreenshot(d);
  }
Example #2
0
  @Test(dataProvider = "testcase")
  public void testcase1(
      String uname,
      String pwd,
      String fname,
      String lname,
      String gndr,
      String db,
      String addrl1,
      String ct,
      String st,
      String zip1,
      String elig,
      String ssn,
      String enrlmnt,
      String newmem,
      String f1name,
      String l1name,
      String db1,
      String gndr1,
      String ssn1,
      String f2name,
      String l2name,
      String db2,
      String gndr2,
      String ssn2,
      String f3name,
      String l3name,
      String db3,
      String gndr3,
      String ssn3,
      String f4name,
      String l4name,
      String db4,
      String gndr4,
      String ssn8,
      String rltn19,
      String rltn20,
      String rltn21,
      String rltn22,
      String rltn23,
      String rltn24,
      String rltn25,
      String rltn26,
      String rltn27,
      String rltn,
      String incmtyp,
      String empname,
      String strt,
      String citi,
      String ste,
      String zpcd,
      String amt,
      String freq,
      String stdate,
      String incmtyp1,
      String amt1,
      String freq1,
      String stdate1,
      String fnname,
      String lnname)
      throws IOException, InterruptedException {

    // @Test

    // public void testcase1() throws IOException, InterruptedException{

    hpage.click_loginbutton();

    lpage.login(uname, pwd);

    // Thread.sleep(15000);
    cpage.click();
    getting_started.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    terms_conditions.click();
    Thread.sleep(8000);
    // d.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    info_abtu.fillin(fname, lname, gndr, db, addrl1, st, ct, zip1, elig);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    moreinfo_abtu.fillin(ssn, enrlmnt);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    //		common_elements.click();
    //		Thread.sleep(8000);
    ////		othermembers_app.fillin(newmem);
    ////		Thread.sleep(8000);
    ////		common_elements.click();
    ////		Thread.sleep(8000);
    street_residence.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    year_built.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    education_details.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    bed_rooms.opt();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    othermembers_app.fillin(newmem);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    groupmembers_app.fillin(f1name, l1name, db1, gndr1);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    groupxtradetails_app.fillin(ssn1);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    add_people.yes_morepeople();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    groupmembers_app.fillin1(f2name, l2name, db2, gndr2);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    groupxtradetails_app.fillin1(ssn2);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    add_people.yes_morepeople();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    groupmembers_app.fillin2(f3name, l3name, db3, gndr3);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    groupxtradetails_app.fillin2(ssn3);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    add_people.yes_morepeople();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    groupmembers_app.fillin3(f4name, l4name, db4, gndr4);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    groupxtradetails_app.fillin7(ssn8);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    add_people.no_morepeople();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    relation_ship.fillin5(rltn19, rltn20, rltn21, rltn22);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    relation_ship.fillin6(rltn23, rltn24, rltn25);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    relation_ship.fillin1(rltn26, rltn27);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    relation_ship.fillin(rltn);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    tax_filer.click1();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    //		taxfiler_status.yes_filetaxes();
    //		Thread.sleep(8000);
    //		common_elements.click();
    //		Thread.sleep(8000);
    dependency_taxreturn.select2();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    dependency_taxreturn.select1();
    common_elements.click();
    Thread.sleep(8000);
    dependency_taxreturn.select2();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    income_info.yes_income();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    income_details.fillin(incmtyp, empname, strt, citi, ste, zpcd, amt, freq, stdate);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    income_info.yes_income();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    income_details.fillin1(incmtyp1, amt1, freq1, stdate1);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    income_info.no_income();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    income_info.no_income();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    income_info.no_income();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    common_elements.click();
    Thread.sleep(8000);

    add_details.fillin();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);

    submit_app.fillin_app(fnname, lnname);
    Thread.sleep(8000);
    common_elements.click();
    Thread.sleep(8000);
    eligibilty_results.click();
    Thread.sleep(8000);

    Butility.takescreenshot(d);
  }