Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with goto Redirecting to HTTPS in Taiko #2738

Open
SysoutLucas opened this issue Aug 22, 2024 · 0 comments
Open

Issue with goto Redirecting to HTTPS in Taiko #2738

SysoutLucas opened this issue Aug 22, 2024 · 0 comments

Comments

@SysoutLucas
Copy link

I am encountering an issue with the goto function in Taiko. When trying to navigate to a URL using goto, the browser automatically redirects to the HTTPS version of the site, even though the URL specified is HTTP.

Here are the details of the problem:

URL Used: http://aetespecial.detran.ce.gov.br/
Expected Behavior: The browser should navigate to the specified HTTP URL without redirecting to HTTPS.
Actual Behavior: The browser automatically redirects to the HTTPS version of the URL.
I have tried various methods to prevent this redirection, including setting different browser arguments and using intercept to modify requests, but none have resolved the issue.

Steps to Reproduce:

Open the Taiko browser with the following configuration:
javascript
Copiar código
await openBrowser({args: ['--no-sandbox', '--disable-gpu', '--disable-dev-shm-usage'], headless: false});
Navigate to the URL using:
javascript
Copiar código
await goto('http://aetespecial.detran.ce.gov.br/', {waitUntil: 'load'});
Additional Information:

The same URL works correctly with Puppeteer without redirection issues.
I am using the latest version of Taiko.
Expected Outcome:

The browser should navigate to the HTTP URL without redirecting to HTTPS.

Actual Outcome:

The browser redirects to the HTTPS version of the URL.

Request:

Could you please assist with this issue or provide guidance on how to handle HTTP URLs in Taiko without automatic redirection to HTTPS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant