WebPagetest Forums
use script,API not available - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: Private Instances (/forumdisplay.php?fid=12)
+--- Thread: use script,API not available (/showthread.php?tid=15046)



use script,API not available - changfang - 09-15-2017 12:06 PM

launch server:
bash ./wptdriver.sh -m debug --browser android:deviceName --serverUrl "private instance url" --location AndroidLocation --processvideo yes &

batch_tool script:
python ./wpt_batch.py -s "private instance server url" -i ./urls.txt -f ./result -o AndroidLocation -c ./script.txt

two script.txt:
1.script.txt:
navigate http://m.baidu.com
execAndWait document.getElementById('login').click()
sleep 5

2.script.txt:
logData 0
navigate https://m.baidu.com/
logData 1
clickAndWait id=login

two script run result:
1.navigate is ok, open test url on android chrome
2.execAndWait / clickAndWait not running

why?please help me,thanks.