Currently, I am utilizing selenium-webdriver in nodeJS instead of Java.
My issue lies with using this.getPageSource()
, as it returns HTML without waiting for the execution of JavaScript. Consequently, some elements that are loaded by JS do not appear in the DOM.
Is there a method to wait for JavaScript execution?