Hi ,
I am working selenium 4.0 , relative locators . Please let me know why the below code is throwing error
and not identifying the objects.
driver = webdriver.Chrome(executable_path="C://Python Pro//untitled//CromeDriver//chromedriver.exe")
driver.get("https://www.swtestacademy.com/")
driver.find_element(with_tag_name("article").to_right_of(By.XPATH("//article[1]")))
Error: TypeError: 'str' object is not callable