-
Notifications
You must be signed in to change notification settings - Fork 674
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
Native Automation requires https protocol #8133
Comments
Hello @czarekeltonjohn, TestCafe allows you to open HTTPS and HTTP/2 websites in Native Automation mode out of the box. Please share a minimal working example so that the TestCafe team can research the issue and help you. |
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news. |
Hello @czarekeltonjohn, We have investigated this issue and found a workaround for it. Since requests in Chrome are automatically upgraded to HTTPS in customRequestHookFile.js: import { RequestHook } from 'testcafe';
export default class CustomRequestHook extends RequestHook {
constructor (requestFilterRules) {
super(requestFilterRules);
}
onRequest(e) {
e.requestOptions.protocol = 'http:';
}
onResponse(e) {
}
} configuration file: import CustomRequestHook from './hook.js'
const hook = new CustomRequestHook(/https?:\/\/www.testingmcafeesites.com/)
module.exports = {
hooks: {
request: hook
}
} Please let us know your results. |
This issue was automatically closed because there was no response to our request for more information from the original author. Currently, we don't have enough information to take action. Please reach out to us if you find the necessary information and are able to share it. We are also eager to know if you resolved the issue on your own and can share your findings with everyone. |
Hello @wombatka, Could you please create a separate ticket for the issue and share a minimal working example? This will help the TestCafe team investigate the issue in greater detail. |
created new issue: #8330 |
What is your Scenario?
We have web applications deployed on internal k8s cluster available by http protocol. Is there any configuration or flag that will allow testcafe v.3.5.0 with native automation enabled to reach such web app using http protocol. We can omit ssl certificate errors using chrome flag, but it seems testcafe is allowing only https (which in my case is always unreachable). Even if I explicetely set page as "http://" in testcafe browser it is "https://"
What are you suggesting?
Configuration change or flag that will allow native automation using http protocol
What alternatives have you considered?
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: