@@ -96,6 +96,7 @@ def click_if_displayed(self) -> bool:
9696 try :
9797 self .is_displayed_with_wait ()
9898 var = Store .current_driver .find_element (self .by , self .value ).click
99+ print ("Click action complete on:" + self .by + "with " + self .value + "return value: " + var )
99100 except Exception as e :
100101 print ("click if displayed not worked at \n " + self .by + "\n " + self .value + "\n Exception: \n " + str (e ))
101102 return False
@@ -119,7 +120,7 @@ def scroll_to_locator_using_js(self) -> bool:
119120 scroll_locator = Store .current_driver .find_element (self .by , self .value )
120121 Store .current_driver .execute_script ('arguments[0].scrollIntoView(true);' , scroll_locator )
121122 except Exception as e :
122- print ("scroll to locator using js not worked at \n " + self .by + "\n " + self .value + "\n Exception: \n " + str (e ))
123+ print ("scroll to locator using js not worked at: " + self .by + ": " + self .value + " Exception: " + str (e ))
123124 return False
124125 else :
125126 return True
@@ -139,11 +140,12 @@ def get_element(self) -> webelement.WebElement:
139140 try :
140141 return Store .current_driver .find_element (self .by , self .value )
141142 except Exception as e :
142- print ("scroll to locator using js not worked at \n " + self .by + "\n " + self .value + "\n Exception: \n " + str (e ))
143+ print ("get element not worked at \n " + self .by + "\n " + self .value + "\n Exception: \n " + str (e ))
143144
144145 def clear_and_send_keys (self , string ) -> bool :
145146 try :
146147 var = Store .current_driver .find_element (self .by , self .value ).clear
148+ print ("Clear action completed on: " + self .by + " and " + self .value + " Return value is: " + var )
147149 Store .current_driver .find_element (self .by , self .value ).send_keys (string )
148150 except Exception as e :
149151 print ("Clear and Send keys not worked at \n " + self .by + "\n " + self .value + "\n Exception: \n " + str (e ))
0 commit comments