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 button click with experimentalProxyless=true #7535

Closed
aprabh001c opened this issue Feb 23, 2023 · 8 comments
Closed

Issue with button click with experimentalProxyless=true #7535

aprabh001c opened this issue Feb 23, 2023 · 8 comments
Assignees
Labels
SYSTEM: native automation TYPE: bug The described behavior is considered as wrong (bug).

Comments

@aprabh001c
Copy link

What is your Scenario?

When experimentalProxyless=true, testcafe is not clicking _search button mentioned in below script ( or after clicking browser is not responding) and it fails

This is related to #6861 (without experimentalproxyless mode we are hitting issue #6891)

Script Used to reproduce with Public Website
import {t, Selector} from 'testcafe'

fixture UnHandledException

test(UnhandledExceptionTC, async tn=>{
const _addressField = Selector('#Address_SingleStreetAddress,input[name="localizationAddressField"]');
const _search = Selector(".localization-container button[type='submit']");

await t.navigateTo("https://www.xfinity.com/learn/offers");
await t.wait(10000);
await t.typeText(_addressField,"200 MAIN ST, NORTHAMPTON, MA 01060",{paste:true})
await t.wait(2000)
await t.click(_search)
await t.expect(_search.visible).notOk();

})

What is the Current behavior?

button not clicked or not responding

What is the Expected behavior?

Should proceed to next step

What is your public website URL? (or attach your complete example)

https://www.xfinity.com/learn/offers

What is your TestCafe test code?

import {t, Selector} from 'testcafe'

fixture UnHandledException

test(UnhandledExceptionTC, async tn=>{
const _addressField = Selector('#Address_SingleStreetAddress,input[name="localizationAddressField"]');
const _search = Selector(".localization-container button[type='submit']");

await t.navigateTo("https://www.xfinity.com/learn/offers");
await t.wait(10000);
await t.typeText(_addressField,"200 MAIN ST, NORTHAMPTON, MA 01060",{paste:true})
await t.wait(2000)
await t.click(_search)
await t.expect(_search.visible).notOk();

})

Your complete configuration file

experimentalProxyless=true

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

import {t, Selector} from 'testcafe'

fixture UnHandledException

test(UnhandledExceptionTC, async tn=>{
const _addressField = Selector('#Address_SingleStreetAddress,input[name="localizationAddressField"]');
const _search = Selector(".localization-container button[type='submit']");

await t.navigateTo("https://www.xfinity.com/learn/offers");
await t.wait(10000);
await t.typeText(_addressField,"200 MAIN ST, NORTHAMPTON, MA 01060",{paste:true})
await t.wait(2000)
await t.click(_search)
await t.expect(_search.visible).notOk();

})

TestCafe version

2.3.0

Node.js version

19.3.0

Command-line arguments

testcafe chrome -F UnHandledException

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

@aprabh001c aprabh001c added the TYPE: bug The described behavior is considered as wrong (bug). label Feb 23, 2023
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Feb 23, 2023
@AlexKamaev
Copy link
Contributor

Thank you for the example. I managed to reproduce the problem. The actual issue is not with the click action, but with some XHR request that is related to the click action. We'll research it.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Feb 24, 2023
@miherlosev miherlosev assigned miherlosev and unassigned miherlosev Feb 28, 2023
@patrickathompson
Copy link

I am also experiencing this issue. After enabling proxyless mode in 2.4.0, a button click is no longer functioning. Proxyless mode is needed because the page cannot be tested with hammerhead-js due to its bugs.

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Mar 21, 2023
@AlexKamaev
Copy link
Contributor

AlexKamaev commented Mar 22, 2023

@patrickathompson the original issue is very specific. It's unlikely that you have a similar one. Please create a separate issue and share an example using this template

@need-response-app need-response-app bot added STATE: Need response An issue that requires a response or attention from the team. and removed STATE: Need response An issue that requires a response or attention from the team. labels Mar 22, 2023
@AlexKamaev AlexKamaev removed the STATE: Need response An issue that requires a response or attention from the team. label Mar 23, 2023
@AlexKamaev
Copy link
Contributor

@aprabh001c
I cannot reproduce the issue anymore. Please try updating your TestCafe version to 2.5.0 and try the test again.

@AlexKamaev AlexKamaev added the STATE: Need clarification An issue lacks information for further research. label Apr 11, 2023
@github-actions
Copy link

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.

@aprabh001c
Copy link
Author

aprabh001c commented May 2, 2023

Hi
Thank you for your response
I am able to see this issue in 2.5 as well.
Node version - 18.16.0
Browser - Chrome 112.0.5615.138
configuration:
"nativeAutomation": "true"
Please let me know if i need to provide more details

with "nativeAutomation": "false", we are seeing same issue search button is not clicked

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label May 2, 2023
@github-actions github-actions bot removed the STATE: Need clarification An issue lacks information for further research. label May 2, 2023
@github-actions github-actions bot reopened this May 2, 2023
@AlexKamaev
Copy link
Contributor

I've recorded a video to demonstrate that TestCafe handles a button click correctly. Please take a look at the attached video file.
Please also try using the following TestCafe version: https://www.npmjs.com/package/testcafe/v/2.5.1-rc.1
If the issue persists, record a video that demonstrates the issue. Use the following command to record such a video:
npx testcafe chrome test.js -e --native-automation --video artifacts

button_click.mp4

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label May 3, 2023
@AlexKamaev AlexKamaev added the STATE: Need clarification An issue lacks information for further research. label May 3, 2023
@aprabh001c
Copy link
Author

I am not seeing this issue with 2.5.1-rc.1 version, but hitting another issue, which is not related to this. I will raise a new issue for that. Thank you for your support.

@need-response-app need-response-app bot added STATE: Need response An issue that requires a response or attention from the team. and removed STATE: Need response An issue that requires a response or attention from the team. labels May 4, 2023
@github-actions github-actions bot removed the STATE: Need clarification An issue lacks information for further research. label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SYSTEM: native automation TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

4 participants