chrome = webdriver.Chrome()
chrome.get("https://www.hkexnews.hk/")
WebElement elements =
chrome.findElement(By.xpath,
"//[@id='rbAfter2006']/ul")
WebElement elements = chrome.findElement(By.xpath,"//[@id='rbAfter2006']/ul")
The problem is on above line, it shows error "Statements must be separated by newlines or semicolons. I have no idea what is the problem assigning elements on it.