I am writing selenium python tests on a docker image. Currently I have a server running on localhost using url http://127.0.0.1:8090/ How can I use selenium to access my localhost chrome browser. This is the code I have written, however it is not connecting my docker image to my localhost.
from selenium import webdriver
chrome_path = r"/exabgp/chromedriver.exe"
driver = webdriver.Chrome(chrome_path)
driver.get("http://127.0.0.1:8090/")
driver.find_element_by_xpath("""//{*0id="sss0"}/li/{19}/a***).click()