Selenium element.text() is not considered as a string

Solution 1:

To get a web element text you should apply .text on it, not .text()
Also, there are unnecessary parenthesis here that should be removed.
So, instead of

title = driver.find_element((By.CLASS_NAME, 'mt-3')).text()

it should be

title = driver.find_element(By.CLASS_NAME, 'mt-3').text