@@ -22,43 +22,43 @@ public void TestInformationCommands(){
2222            bool  isEmailVisible  =  driver . FindElement ( By . Name ( "email_input" ) ) . Displayed ; 
2323            Assert . AreEqual ( isEmailVisible ,  true ) ; 
2424
25-             //isEnabled 
26-             //returns true if element is enabled else returns false 
25+             //  isEnabled 
26+             //  returns true if element is enabled else returns false 
2727            bool  isEnabledButton  =  driver . FindElement ( By . Name ( "button_input" ) ) . Enabled ; 
2828            Assert . AreEqual ( isEnabledButton ,  true ) ; 
2929
30-             //isSelected 
31-             //returns true if element is checked else returns false 
30+             //  isSelected 
31+             //  returns true if element is checked else returns false 
3232            bool  isSelectedCheck  =  driver . FindElement ( By . Name ( "checkbox_input" ) ) . Selected ; 
3333            Assert . AreEqual ( isSelectedCheck ,  true ) ; 
3434
35-             //TagName 
36-             //returns TagName of the element 
35+             //  TagName 
36+             //  returns TagName of the element 
3737            string  tagNameInp  =  driver . FindElement ( By . Name ( "email_input" ) ) . TagName ; 
3838            Assert . AreEqual ( tagNameInp ,  "input" ) ; 
3939
40-             //Get Location and Size 
41-             //Get Location 
40+             //  Get Location and Size 
41+             //  Get Location 
4242            IWebElement  rangeElement  =  driver . FindElement ( By . Name ( "range_input" ) ) ; 
4343            Point  point  =  rangeElement . Location ; 
4444            Assert . IsNotNull ( point . X ) ; 
45-             //Get Size 
45+             //  Get Size 
4646            int  height = rangeElement . Size . Height ; 
4747            Assert . IsNotNull ( height ) ; 
4848
4949            // Retrieves the computed style property 'font-size' of field 
5050            string  cssValue  =  driver . FindElement ( By . Name ( "color_input" ) ) . GetCssValue ( "font-size" ) ; 
5151            Assert . AreEqual ( cssValue ,  "13.3333px" ) ; 
5252
53-             //GetText 
53+             //  GetText 
5454            // Retrieves the text of the element 
5555            string  text  =  driver . FindElement ( By . TagName ( "h1" ) ) . Text ; 
5656            Assert . AreEqual ( text ,  "Testing Inputs" ) ; 
5757
58-             //FetchAttributes 
59-             //identify the email text box 
58+             //  FetchAttributes 
59+             //  identify the email text box 
6060            IWebElement  emailTxt  =  driver . FindElement ( By . Name ( "email_input" ) ) ; 
61-             //fetch the value property associated with the textbox 
61+             //  fetch the value property associated with the textbox 
6262            string  valueInfo  =  emailTxt . GetAttribute ( "value" ) ; 
6363            Assert . AreEqual ( valueInfo ,  "admin@localhost" ) ; 
6464
0 commit comments