WebPagetest Forums
Problems with scripting on Netlfix website - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: Problems with scripting on Netlfix website (/showthread.php?tid=14593)

Problems with scripting on Netlfix website - mateosmasa - 11-10-2016 11:17 PM

I'm trying to run a scripted test in Netflix Brazil with a logged user but the script doesn't run correctly.

navigate https://www.netflix.com/br/Login
exec document.querySelector('input[name="email"]').value = "name";
exec document.querySelector('input[name="password"]').value = "password";
execAndWait document.querySelector('button[class="btn login-button btn-submit btn-small"]').click();
navigate https://www.netflix.com/title/70195800

The main problem is in execAnWait line where WTP doesn´t even reach to click the button.

Anybody has any idea what it could be the issue?, because I have already tried everything, even every line of the script in Chrome Dev tools in Console section and the only thing that doesn´t work is button's sentence.