How to understand the function 'self.assertIn' & 'driver.title'
I researched this as much as I could on my own but came to no clear conclusion to my question. I've been teaching myself automation testing via Python + Selenium, I'm as new or n00b as it gets so bare with me. I've come across this line in some of my tutorials: self.assertIn but more like this, self.assertIn("Python", driver.title) and I've also seen it like this (simple use, not in unittest) assert "Python" in driver.title ... so far I've been able to grasp the tutorials, at least where my progress has taken me but I do not understand the function of this driver.title. Any help would be much appreciated. Thanks in advance for your time.
jeanid last edited by
It is getting the title of the web page and seeing if it has Python in it. How much HTML do you know?