Open kdong007 opened 6 years ago
for example, I have these codes inside html
<script type="text/javascript"> function test(){ return new Promise(resolve=> setTimeout(resolve,1000) }); } } </script>
then I do this in my main code let rt = browser.evaluate("test()");
let rt = browser.evaluate("test()");
I do get a promise object but rt.then() won't work.
rt.then()
for example, I have these codes inside html
then I do this in my main code
let rt = browser.evaluate("test()");
I do get a promise object but
rt.then()
won't work.