I have been working with selenium and consulting different helping resources for error solving. I have seen that sometimes, there is a slight difference in the syntax of the locators used.
This is what I am currently using.
driver.find_element(By.ID, "id")
But I have also seen this being used sometimes:
driver.find_element_by_id("id")
Can you please explain the difference.
I am using the following syntax but curios why is there a different syntax as well.
driver.find_element(By.ID, "id")