public void ProcessorFilterAMDa10AndAMDfx() { var resultComponent = new ResultComponent(webDriver); var filterNotebookComponent = new FilterNotebookComponent(webDriver); resultComponent.Open(_url); filterNotebookComponent.SelectCPU(FilterNotebookComponent.CpuType.AMDa10); filterNotebookComponent.SelectCPU(FilterNotebookComponent.CpuType.AMDfx); try { resultComponent.WaitProcessing(); } catch (Exception) { } finally { resultComponent.ProcessingComplite(); } string[] descriptionAll = resultComponent.GetAllDescriptionOnThePage(); foreach (var item in descriptionAll) { if (!(item.Contains("AMD A10") || item.Contains("AMD FX"))) { Assert.Fail($"The processor 'AMD A10 or AMD FX' filter not works correctly"); } } log.Log(Status.Pass, $"The processor 'AMD A10 or AMD FX' filter works correctly"); }
public void OneProcessorFilterNotebook(FilterNotebookComponent.CpuType type, string text) { var resultComponent = new ResultComponent(webDriver); var filterNotebookComponent = new FilterNotebookComponent(webDriver); resultComponent.Open(_url); filterNotebookComponent.SelectCPU(type); try { resultComponent.WaitProcessing(); } catch (Exception) { } finally { resultComponent.ProcessingComplite(); } string[] descriptionAll = resultComponent.GetAllDescriptionOnThePage(); foreach (var item in descriptionAll) { if (!item.Contains(text)) { Assert.Fail($"The processor '{text}' filter not works correctly"); } } log.Log(Status.Pass, $"The processor {text} filter works correctly"); }