public bool check_Homepage() { common = new CommonFunctionalities(); invoke_Driver(); common.go_to("https://www.expedia.com"); if (common.check_title("Expedia Travel: Search Hotels, Cheap Flights, Car Rentals & Vacations")) { return(true); } else { return(false); } }
public bool check_HomePage() { Common = new CommonFunctionalities(); invoke_Driver(); Common.go_to("http://automationpractice.com/index.php"); if (Common.check_title("My Store")) { return(true); } else { return(false); } }
async void CameraButtonClicked(object sender, System.EventArgs e) { var photo = await Plugin.Media.CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions() { PhotoSize = Plugin.Media.Abstractions.PhotoSize.Custom, CustomPhotoSize = 5 }); if (photo != null) { //PhotoImage.Source = ImageSource.FromStream(() => { return photo.GetStream(); }); stream = CommonFunctionalities.ImageToBase64(photo.GetStream()); ProofPhotoImage.Source = ImageSource.FromStream(() => { return(CommonFunctionalities.Base64ToImage(stream)); }); } }
public DetailofIssues(Issue issue) { InitializeComponent(); numberOfTimePageLoaded++; this.issue = issue; aPIService = RestService.For <IAPIService>(Constants.mongoDBBaseUrl); issueImage.Source = ImageSource.FromStream(() => { return(CommonFunctionalities.Base64ToImage(issue.photo)); }); ratingLabel.Text = "Rating : " + issue.rating; statusLabel.Text = "Status : " + issue.status; addressLabel.Text = issue.address; if (string.IsNullOrEmpty(issue.additional_comments)) { additionalCommentsLabel.Text = " NONE"; } else { additionalCommentsLabel.Text = issue.additional_comments; } }
public void ShowErrorMessage(string text) { CommonFunctionalities.ShowErrorMessage(text); }
public void invoke_Driver() { Common = new CommonFunctionalities(); driver = new ChromeDriver(); Common.Maximize(); }