WebPagetest Forums
script doesn't work with IE 10/11 and wptdriver - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Bugs/Issues (/forumdisplay.php?fid=10)
+--- Thread: script doesn't work with IE 10/11 and wptdriver (/showthread.php?tid=12753)



script doesn't work with IE 10/11 and wptdriver - nilskuhn - 01-13-2014 07:18 PM

Hi,

the following script doesn't work in IE 10/11:

Code:
ignoreErrors    1
logData    0
//Artikel    1 in WK
navigate    https://www.otto.de
exec    document.querySelector('.js_searchField').value='hosen';
execAndWait    document.querySelector('.js_submitButton').click();
execAndWait    document.querySelector('#san_searchResult section div:first-child a').click();
execAndWait    document.querySelector('#addToBasket').click();
//Artikel    2 in WK
navigate    https://www.otto.de
exec    document.querySelector('.js_searchField').value='schuhe';
execAndWait    document.querySelector('.js_submitButton').click();
execAndWait    document.querySelector('#san_searchResult section div:first-child a').click();
execAndWait    document.querySelector('#addToBasket').click();
//Artikel    3 in WK
navigate    https://www.otto.de
exec    document.querySelector('.js_searchField').value='pullover';
execAndWait    document.querySelector('.js_submitButton').click();
execAndWait    document.querySelector('#san_searchResult section div:first-child a').click();
execAndWait    document.querySelector('#addToBasket').click();
//Artikel    4 in WK
navigate    https://www.otto.de
exec    document.querySelector('.js_searchField').value='socken';
execAndWait    document.querySelector('.js_submitButton').click();
execAndWait    document.querySelector('#san_searchResult section div:first-child a').click();
execAndWait    document.querySelector('#addToBasket').click();
//Artikel    5 in WK
navigate    https://www.otto.de
exec    document.querySelector('.js_searchField').value='adidas';
execAndWait    document.querySelector('.js_submitButton').click();
execAndWait    document.querySelector('#san_searchResult section div:first-child a').click();
execAndWait    document.querySelector('#addToBasket').click();
//WK-Aufruf
logData    1
navigate    https://www.otto.de/order-system/basket

Seems to be a problem, testing IE with wptdriver.
With IE10 (http://www.webpagetest.org/result/140113_QJ_8ZZ/) and IE11 (http://www.webpagetest.org/result/140110_QR_PHK/) it doesn't work (they use wptdriver on webpagetest.org). Up to IE9 (controlled by urlblast) it works:
http://www.webpagetest.org/result/140113_0W_A3D/

In our private instances the script works with urlblast and IE8 with wptdriver and IE10/11 it doesn't work.

Regards, Nils


RE: script doesn't work with IE 10/11 and wptdriver - nilskuhn - 01-14-2014 12:40 AM

Last line of script-block adding an article to basket opens a modal layer:
Code:
execAndWait    document.querySelector('#addToBasket').click();
If I change the execAndWait to exec (which actually makes sense, cause no new page is load) it works for IE10. So my fault and this Thread may be closed for IE10.
But with IE11 I can't get my test even started. Homepage gets loaded and nothing happens afterwards. Maybe another issue?


RE: script doesn't work with IE 10/11 and wptdriver - mverkerk - 07-19-2014 03:25 AM

(01-14-2014 12:40 AM)nilskuhn Wrote:  Last line of script-block adding an article to basket opens a modal layer:
Code:
execAndWait    document.querySelector('#addToBasket').click();
If I change the execAndWait to exec (which actually makes sense, cause no new page is load) it works for IE10. So my fault and this Thread may be closed for IE10.
But with IE11 I can't get my test even started. Homepage gets loaded and nothing happens afterwards. Maybe another issue?

I may be experiencing a similar issue ... i have a few tests that all seem to get stuck in IE11. So far, the only similarity between these tests is that:

1. They're scripted
2. They have a navigate statement to a secure page (SSL)

Here is an example of a script:

---------------------------------------------
logData 0
navigate https://<masked>

clickAndWait id=pch5-login

setValue id=loginname <masked>
setValue id=password <masked>

submitForm id=loginForm

logData 1
navigate https://<masked>/basket.aspx
---------------------------------------------


I've been watching my agents and the browser will sit on the first navigate forever ... eventually it will timeout and continue picking up other jobs but that has taken as long as 30 minutes!

any ideas?