Is it possible to wait for a slow ajax element? In 95% the following code works fine, but in 5 % the Element needs more time to load and the Code will stop by showing a Error-Message.
driver.Wait 2000
driver.FindElementsByXPath("//button").Last.Click