Trying to inject an external prefetch library into a scripted test
|
04-24-2020, 05:00 AM
Post: #1
|
|||
|
|||
Trying to inject an external prefetch library into a scripted test
Hi Pat, I am trying to inject an external prefetch library into a scripted test
Here is the script I wish to inject Code: var js = document.createElement("script"); Here are the steps I am looking to setup Code: navigate https://www.foo.com/ I see that the steps are being executed properly but the script is not being injected, am I doing something wrong here? Appreciate your help as always. Thanks Akhil |
|||
04-25-2020, 05:24 AM
Post: #2
|
|||
|
|||
RE: Trying to inject an external prefetch library into a scripted test
Ok found the answer to this one. If you are using a scripted WPT test then you cannot inject the script via the "inject script" UI. You need to include it as part of your WPT script. So my script now looks like
Code: navigate https://www.foo.com |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)