WebPagetest Forums
Mobile scripting - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Testing Tools/Services (/forumdisplay.php?fid=6)
+--- Thread: Mobile scripting (/showthread.php?tid=12967)

Pages: 1 2


Mobile scripting - pmsangal - 05-13-2014 02:57 PM

Does WPT support scripting on mobile?

I have a private instance, and trying to test the below URL on iphone 5s:
https://search.yahoo.com/search;_ylt=A0SO8ynWKm1T_CAA6Hql87UF;_ylc=X1MDOTU4MTA0NjkEX3IDMgRiY2sDNW9nMGR2bD​lodGJ0MyUyNmIlM0Q0JTI2ZCUzRDBsOEQ1T2RwWUVMU3NDa0lUWmJsekF6WFozOU5zNnR4VVQuUU5nLS​0lMjZzJTNEMzAlMjZpJTNESF9VTF9FMlBhZzA4Y0dSQmF4NUcEZnIDBGdwcmlkAwRtdGVzdGlkA251bG​wEbl9yc2x0AzAEbl9zdWdnAzAEb3JpZ2luA3NlYXJjaC55YWhvby5jb20EcG9zAzAEcHFzdHIDBHBxc3​RybAMEcXN0cmwDMwRxdWVyeQNjYXQEdF9zdG1wAzEzOTk2NjMzMjg1MjgEdnRlc3RpZANudWxs?pvid=​gD.t_DIwOC5cQA39Ux6vowpxNjYuMlNtKtb_8Pc4&p=cat&fr=sfp&fr2=&iscqry=&tmpl=ASST_M:SA005,CB_M:CBM01,INFRA_M:RHEL6M,UI01_M:MOUS180

I'd like to be able to click the Safari location prompt(s) via script. Is this possible?


RE: Mobile scripting - pmeenan - 05-15-2014 12:39 AM

No, sorry - the mobile agents do not support scripting.

The newer nodejs agents supress the location UI (on Android) and do allow some level of scripting for page interactions (webdriver) but not some of the richer interactions that you can do with the desktop agents. The iOS support there is still a work in progress though.

Here's what the same test looks like on the new agents: http://www.webpagetest.org/result/140514_97_N4B/

They have a lot more data, can capture 60fps video of the page loading and have full dev tools timeline integration.


RE: Mobile scripting - pmsangal - 05-15-2014 02:00 PM

Thanks, Pat.

"The iOS support there is still a work in progress though."
When do you expect to roll out iOS support?


RE: Mobile scripting - pmeenan - 06-17-2015 10:14 PM

(05-15-2014 02:00 PM)pmsangal Wrote:  Thanks, Pat.

"The iOS support there is still a work in progress though."
When do you expect to roll out iOS support?

It's second on my priority list right now (behind HTTP/2 decode support) mostly because of the expected amount of work. Hopefully by the end of summer but it all depends on how broken the ios-debug-proxy is.


RE: Mobile scripting - mverkerk - 02-05-2016 09:47 AM

Let's see if we can bring this thread back to life Smile

I am frantically working on adding mobile support to our internal WPT service and got a few Android devices going in no time! Then, I quickly stumbled upon the limited support for scripting. Scripting is an absolute must for us because many of our products are hiding behind SSO.

Pat - what does the priority list look like at the moment? I think i saw a number of http/2 related commits fly by and looks like some of your more recent commits include updates to the mobile agent ... promising! Smile

Is there any way we can help? I bet I can find some willing nodejs developers that can contribute to this effort!


RE: Mobile scripting - pmeenan - 02-06-2016 08:17 AM

Pull requests are always appreciated, particularly is someone knows Node reasonably well. The mobile scripting support is high on my list and I'll get to it this year but not this quarter (probably just before summer). There's some basic support for DNS rewriting but not multi-step.

Looks like adding headers would be trivial (there's a remote debug protocol command for it) if that can help get past the SSO requirement, otherwise adding support for multiple script steps and the exec command are probably the minimal work to get it working.


RE: Mobile scripting - SJLJ - 04-06-2016 04:17 AM

hey Pat
Just want to check that do you have latest update that when mobile script will be ready? we set up a private instance of Android devices , it is very useful and really want the script function...

Thanks

(02-06-2016 08:17 AM)pmeenan Wrote:  Pull requests are always appreciated, particularly is someone knows Node reasonably well. The mobile scripting support is high on my list and I'll get to it this year but not this quarter (probably just before summer). There's some basic support for DNS rewriting but not multi-step.

Looks like adding headers would be trivial (there's a remote debug protocol command for it) if that can help get past the SSO requirement, otherwise adding support for multiple script steps and the exec command are probably the minimal work to get it working.



RE: Mobile scripting - mas - 10-03-2017 08:49 AM

Pat,

Checking whether iOS Agents support scripting now.

It would be really useful.

Thanks !!

(02-06-2016 08:17 AM)pmeenan Wrote:  Pull requests are always appreciated, particularly is someone knows Node reasonably well. The mobile scripting support is high on my list and I'll get to it this year but not this quarter (probably just before summer). There's some basic support for DNS rewriting but not multi-step.

Looks like adding headers would be trivial (there's a remote debug protocol command for it) if that can help get past the SSO requirement, otherwise adding support for multiple script steps and the exec command are probably the minimal work to get it working.



RE: Mobile scripting - pmeenan - 10-04-2017 02:57 AM

It should support scripting though an issue was filed a couple of days that I need to investigate in case something broke: https://github.com/WPO-Foundation/webpagetest/issues/944


RE: Mobile scripting - mas - 10-06-2017 03:30 AM

Hi Pat,

Thanks for fixing the iOS scripting functionality.

The script is working with the iOS Agents now.

However, 'setDns' command is not working in the script. Even after setting setDns to a specific IP Address, the test is executed against a different IP Address.

How can I fix that?

(10-04-2017 02:57 AM)pmeenan Wrote:  It should support scripting though an issue was filed a couple of days that I need to investigate in case something broke: https://github.com/WPO-Foundation/webpagetest/issues/944