Micro Focus QTP (UFT) Forums
Can QTP inject a link into DOM? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Can QTP inject a link into DOM? (/Thread-Can-QTP-inject-a-link-into-DOM)



Can QTP inject a link into DOM? - lagunascorpio - 06-23-2012

Hello,

I have a requirement to test "site B" which expects that the referrer URL will be "site A". If navigation into "site B" doesn't originate from "site A"... then "site B" will reject the user.

So the test case would be:

1. Navigate to "site A" which does not already contain a link to site B
2. Inject a link into DOM of "site A" that points to "site B"
3. Click the injected link and arrive at "site B"

Can QTP do this?