Selenium - Difference between text_to_be_present_in_element and text_to_be_present_in_element_value Selenium - Difference between text_to_be_present_in_element and text_to_be_present_in_element_value selenium selenium

Selenium - Difference between text_to_be_present_in_element and text_to_be_present_in_element_value


text_to_be_present_in_element is text value, to get the value with selenium element.text or Javascript element.textContent or element.innerTEXT

<p>this is text</p>

text_to_be_present_in_element_value is value attribute for element, to get the value with selenium element.get_attribute('value') and with JS element.getAttribute('value')

<input type="text" value="text value"><input type="button" value="button text value">