Basically what I would like to do is to open ChromeDriver wherever it is on a users desktop without knowing the full path for reasons like not knowing the full path or the location of ChromeDriver is changed at some point in time. I am new to this so I really don't know much when it comes to this sort of problem.
Basically my current code looks like this:
System.setProperty("webdriver.chrome.driver", "C:\\Users\\abcde\\Desktop\\selenium\\Chromedriver.exe");
What I'm wondering if there is a way to open ChromeDriver without specifying the full path so it looks something like this:
System.setProperty("webdriver.chrome.driver", "...\\Chromedriver.exe");```
I know this isn't a correct way to write it I'm just giving a example of how I'm thinking it would look and this line came to mine since in html I used ../css
when I wanted to specify the path to my CSS file.