public bool keys(String usr_name, String password) { try { Common.send_keys(obj.Email_Input(), usr_name); Common.send_keys(obj.Password_Input(), password); return(true); } catch (Exception e) { Console.Write(e.Message); return(false); } }
public void built_Itenary(String airport1, String airport2, String airport3, String date1, String date2, String date3, String pax) { try { common.press(obj.FlyingFrom_Leg1()); common.send_keys(obj.FlyingFrom_Leg1(), airport1); common.press(obj.FlyingTo_Leg1()); common.send_keys(obj.FlyingTo_Leg1(), airport2); common.send_keys(obj.flight1_date(), date1); common.press(obj.get_pax()); for (int i = 0; i < int.Parse(pax) - 1; i++) { common.press(obj.increase_pax()); } common.press(obj.FlyingFrom_Leg2()); common.send_keys(obj.FlyingFrom_Leg2(), airport2); common.press(obj.FlyingTo_Leg2()); common.send_keys(obj.FlyingTo_Leg2(), airport3); common.send_keys(obj.flight2_date(), date2); common.press(obj.Get_Add_anotherlight()); common.press(obj.FlyingFrom_Leg3()); common.send_keys(obj.FlyingFrom_Leg3(), airport3); common.press(obj.FlyingTo_Leg3()); common.send_keys(obj.FlyingTo_Leg3(), airport1); common.send_keys(obj.flight3_date(), date3); common.press(obj.Search_btn()); //return true; } catch (Exception e) { Console.Write(e.Message); //return false; } }