protected override void SelectingEventHandler(object sender, ElementActionEventArgs arg) => BugReportingContextService.AddStep($"Select '{arg.ActionValue}' from {arg.Element.ElementName}".AddDynamicTestCasesUsingLocatorsMessage(arg));
protected override void ClickingEventHandler(object sender, ElementActionEventArgs <IOSElement> arg) => BugReportingContextService.AddStep($"Click {arg.Element.ElementName} on {arg.Element.PageName}");
protected override void TurningOffEventHandler(object sender, ComponentActionEventArgs <AndroidElement> arg) => BugReportingContextService.AddStep($"Turn off {arg.Element.ComponentName} on {arg.Element.PageName}");
protected override void SelectingEventHandler(object sender, ComponentActionEventArgs <IOSElement> arg) => BugReportingContextService.AddStep($"Select '{arg.ActionValue}' from {arg.Element.ComponentName} on {arg.Element.PageName}");
protected override void SettingPasswordEventHandler(object sender, ComponentActionEventArgs arg) => BugReportingContextService.AddStep($"Type '{arg.ActionValue}' into {arg.Element.ComponentName}".AddDynamicTestCasesUsingLocatorsMessage(arg));
protected override void SettingPercentageEventHandler(object sender, ElementActionEventArgs <AndroidElement> arg) => BugReportingContextService.AddStep($"Set {arg.Element.ElementName} to '{arg.ActionValue}'% on {arg.Element.PageName}");
protected override void SettingPasswordEventHandler(object sender, ElementActionEventArgs <IOSElement> arg) => BugReportingContextService.AddStep($"Type '{arg.ActionValue}' into {arg.Element.ElementName} on {arg.Element.PageName}");
protected override void ScrollingToVisibleEventHandler(object sender, ElementActionEventArgs arg) => BugReportingContextService.AddStep($"Scroll to visible {arg.Element.ElementName}".AddDynamicTestCasesUsingLocatorsMessage(arg));
protected override void UploadingEventHandler(object sender, ComponentActionEventArgs arg) => BugReportingContextService.AddStep($"I upload '{arg.ActionValue}' for {arg.Element.ComponentName}".AddDynamicTestCasesUsingLocatorsMessage(arg));
public BugReportingPlugin(IBugReportingService bugReportingService, BugReportingContextService bugReportingContextService) { _bugReportingService = bugReportingService; _bugReportingContextService = bugReportingContextService; _filesToBeAttached = new List <string>(); }
protected override void UncheckingEventHandler(object sender, ComponentActionEventArgs arg) => BugReportingContextService.AddStep($"Uncheck {arg.Element.ComponentName} on {arg.Element.PageName}");
protected override void SettingTextEventHandler(object sender, ComponentActionEventArgs <AndroidElement> arg) => BugReportingContextService.AddStep($"Type '{arg.ActionValue}' into {arg.Element.ComponentName} on {arg.Element.PageName}");
protected override void SettingDateEventHandler(object sender, ElementActionEventArgs arg) => BugReportingContextService.AddStep($"Set '{arg.ActionValue}' into {arg.Element.ElementName} on {arg.Element.PageName}");
protected override void FocusingEventHandler(object sender, ElementActionEventArgs arg) => BugReportingContextService.AddStep($"Focus {arg.Element.ElementName} on {arg.Element.PageName}");
protected override void ScrollingToVisibleEventHandler(object sender, ElementActionEventArgs arg) => BugReportingContextService.AddStep($"Scroll to visible {arg.Element.ElementName} on {arg.Element.PageName}");