@@ -25,6 +25,9 @@ internal class SearchResultPage
25
25
protected IWebElement ? ChkBoxDisplayTechOled =>
26
26
_webHelper . InitialiseDynamicWebElement ( LocatorType . CssSelector ,
27
27
"[aria-label*='the filter OLED'] input+i" ) ;
28
+ protected IWebElement ? ChkBoxScreenSize50In =>
29
+ _webHelper . InitialiseDynamicWebElement ( LocatorType . CssSelector ,
30
+ "[aria-label*='the filter 50-59 in'] input+i" ) ;
28
31
protected IWebElement ? ChkBoxScreenSize60In =>
29
32
_webHelper . InitialiseDynamicWebElement ( LocatorType . CssSelector ,
30
33
"[aria-label*='the filter 60-69 in'] input+i" ) ;
@@ -74,6 +77,7 @@ public void FilterByScreenSize(string screenSize)
74
77
var screenSizeElement = screenSize switch
75
78
{
76
79
AmazonTestConstant . ScreenSize . SixtyToSixtyNine => ChkBoxScreenSize60In ,
80
+ AmazonTestConstant . ScreenSize . FiftyToFiftyNine => ChkBoxScreenSize50In ,
77
81
_ => null
78
82
} ;
79
83
_webHelper ? . PerformWebDriverAction ( screenSizeElement , WebDriverAction . Click ) ;
@@ -82,7 +86,7 @@ public void FilterByScreenSize(string screenSize)
82
86
83
87
public bool VerifyFilteredResultListDisplayed ( ) =>
84
88
//WebHelper.IsElementDisplayed(ChkBoxModel2024);
85
- _webHelper . IsChecked ( ChkBoxScreenSize60In ? . FindElement ( By . XPath ( "preceding-sibling::input" ) ) ) ;
89
+ _webHelper . IsChecked ( ChkBoxScreenSize50In ? . FindElement ( By . XPath ( "preceding-sibling::input" ) ) ) ;
86
90
87
91
public void SortByPriceLowToHigh ( )
88
92
{
0 commit comments