Forum Discussion
Thanks for the link. What we want to do is navigate to a web page, for example, our online payment form with a custom HTTP Header that will allow TestComplete to bypass the reCaptcha on the form.
I can see after reading the article how to set headers using a script, but I still don't understand how to navigate to our online payment form with the custom header using a browser. Can I do that in TestComplete?
- krisstoffm2 years agoSenior Member
Hi
This is an old post but i'm interressed in knowing if you had find a solution.
I have the same need.
Thanks
KM
- AlexKaras2 years agoChampion Level 3
Hi,
> Can TestComplete "read" a value from a URL, and then "write" that value into an HTTP header?
> [...] if you had find a solution.
While technically one can parse URL to extract some data from it and issue a request with custom header using TestComplete, I am far not sure this will work in production. Just because this request will be send not from a browser and will not be processed by the browser and thus nothing will be rendered in the browser so that TestComplete can proceed with test execution.
If I got the question right, something like intercepting proxy (e.g. Fiddler) is required here. The browser is set up to use proxy and the proxy is set to monitor the traffic for the tested web site, check if URL contains sought for data, extract this data and append extracted data as a new custom header to all relevant subsequent outgoing requests.
Related Content
- 5 years ago
- 10 years ago
Recent Discussions
- 13 hours ago
- 4 days ago