Automating tests against Salesforce right now and having an issue clicking on the tabs on the main page. I can find the element successfully using xpath and both the displayed and enabled properties of the element are true. When the Click() happens it throws an exception:
javascript error: Cannot read properties of undefined (reading 'defaultView')\n OpenQA.Selenium.JavaScriptException
If I click on the element using javascript the click works:
js.ExecuteScript("arguments[0].click();", element);
I would prefer to use the standard Click() in my code so I'm wondering if anyone knows what might be causing this? I've read other posts about it being an issue with previous versions of Chrome but I'm currently using Chrome 102.0.5005.63 and ChromeDriver 102.0.5005.61.