MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
Trying to inject an external prefetch library into a scripted test
Current time: 01-27-2021, 11:48 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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");

js.type = "text/javascript";
js.src = "https://cdnjs.cloudflare.com/ajax/libs/quicklink/2.0.0-alpha/quicklink.umd.js";

js.onload = function() {
    quicklink.listen();
}
document.body.appendChild(js);

Here are the steps I am looking to setup

Code:
navigate    https://www.foo.com/
sleep    30
navigate    https://www.foo.com/product-2

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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Trying to inject an external prefetch library into a scripted test - jpakhil@gmail.com - 04-24-2020 05:00 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)