hope everyone is well.
I've been trying to automate a form entry by using Selenium. I've used it before and never had an issue with locating the web elements. I can't seem to locate the form text entry fields as web elements, regardless of the method I use. I tried, XPATH, NAME, CSS SELECTOR, nothing works.
The web page address is
https://ee.conifr.com.au/single/9KKQb0af?ref=12_27_32
The code I am using is (these are the different options I've tried to locate the first text entry in the form):
element = self.browser.find_element(By.XPATH,'//[@id="aHjEbzEsTogismYtToxncr"]/section[2]/section/label[2]/input')
OR
element = self.browser.find_element(By.NAME,'/aHjEbzEsTogismYtToxncr/scope1_fuel/unique_vehicle_id')
Error msg is:
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="aHjEbzEsTogismYtToxncr"]/section[2]/section/label[2]/input"}
Any help/guidance would be greatly appreciated.
Thanks!
//span[text()="Unique Vehicle ID"]//following-sibling::input