I am running my tests in all the browsers and facing an issue while working with Edge browser. I have a code to find an element on page like below
WebElement element = driver.findElement(By.xpath("//div[contains(@title,'UserName')]"));
Above code is working fine in all the browsers and finding element correctly except Microsoft Edge browser.
I am using Windows 10 with Edge driver 18. I have downloaded exe as mentioned here.
Can anyone help me on this one?
Thanks, Chandresh Parmar