I'm facing an issue and need help resolving it. Here is the code snippet:
el = driver.findElement(By.css('#mailmillieu a'));
text = el.getAttribute("href");
text = fqdn + text.substring( text.indexOf("/parse_actions") );
driver.get(text);
Unfortunately, I encountered this error message:
TypeError: Object Promise::340 {[[PromiseStatus]]: "pending"} has no method 'indexOf'
Does anyone know how to make Selenium wait until the promise is either fulfilled or rejected?