I am trying to find elements using Selenium Webdriver in Python by partial class name. I am very new to programming and tried using advice from https://intellipaat.com/community/9218/is-it-possible-to-locate-element-by-partial-id-match-in-selenium and Selenium WebDriver Finding Element by Partial Class Name
My code is as follows:
list5=driver.find_elements_by_xpath("//[contains(@id,‘partial id’)]")
Please let me know what is wrong with this code, as it says it is not a valid XPath expression. Thank you!