Whats the difference between getting text and innerHTML when using selenium. Even though we have text under particular element, when we perform .text we get empty values. But doing .get_attribute("innerHTML") works fine. 
Can someone point out the difference between two? When someone should use '.get_attribute("innerHTML")' over .text?
.text will retrieve an empty string of the text in not present in the view port, so you can sroll the object into the viewport and try .text it should retrive the value.
On the contrary innerhtml can get the value even of it is present out side the view port
Difference between text and innerHTML using Selenium