I'm trying to click on the web using VBA+selenium+Chrome
This is my code
dim y as webelement
Set y = driver.FindElementByXPath("//span[@class='source']") ' not working
Set y = driver.FindElementByXPath("//div[@class='material-icons md-20 icon' and text()='code']") ' not working
x = driver.ExecuteScript("arguments[0].click();", y) ' not working
driver.FindElementByXPath("/html/body/div[1]/div/div[2]/div[1]/div[1]/div/div/div/div/div[3]/form/div/div/div[1]/div[4]/div/div[1]/div/div[2]/div/div/div/div[2]/div[1]/div[2]/div[1]/div[13]/div/span").click ' not working
Chrome version 96.0.4664.110.
ChromeDriver 96.0.4664.45
I use the default profile
If I use profile 1, the code works
can anyone help me ?
