Forum Discussion

simonaferrara's avatar
simonaferrara
Frequent Contributor
3 years ago
Solved

Basic Authentication with Cross-browser tests

Hi all,

 

I'm implementing some cross-browser tests by using Test Complete integrated with Selenium Grid.

The site has got basic authentication, so the login form appears when opening the remote web page.

 

Without cross-browser tests I had no issues, by using the Login object supplied by Test Complete, but now I'm encountering the fact that the Login object is not supported for cross-browser tests.

 

As suggested by the documentation ( https://support.smartbear.com/testcomplete/docs/app-testing/web/common-tasks/popups-and-dialogs.html#Login ) I've tried to send the required credentials as part of the target web page URL, but unfortunately the site is security-protected for this type of url and it returns me the "Request cannot be constructed from a URL that includes credentials" error.

 

I've searched and tried other solutions from the Selenium point of view, but I've not found anything that solve the issue till now or I had been not able to apply some suggested code found on the web.

 

Do you have any suggestion of an alternative to be applied to interact with the login form for cross-platform tests?

 

Thanks and regards,

Simona