## script code
Properties prop = new Properties();
FileInputStream ip = new FileInputStream("C:\\Automation\\workspace\\TestNG Project\\src\\Config\\Config.Properties");
String phonesystem = prop.getProperty("phonesystem");
When I run the script, I get following error.
org.openqa.selenium.InvalidSelectorException: The given selector "//a[@id='menu_topNav_Id:j_idt77:1:j_idt79']" is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: Unable to locate an element with the xpath expression "//a[@id='menu_topNav_Id:j_idt77:1:j_idt79']" because of the following error:
[Exception... "The expression cannot be converted to return the specified type." code: "0" nsresult: "0x805b0034 (TypeError)" location: "file:///C:/Users/upatil/AppData/Local/Tempemail@example.com/components/driver_component.js Line: 5696"]
Command duration or timeout: 18 milliseconds
I am sure I am doing it wrong somehow, can someone please help me ?
I will really appreciate if any could help me.