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

Application landing on blank page / not loading property #8185

Open
aprabh001c opened this issue May 7, 2024 · 6 comments
Open

Application landing on blank page / not loading property #8185

aprabh001c opened this issue May 7, 2024 · 6 comments
Labels
STATE: Need clarification An issue lacks information for further research. TYPE: bug The described behavior is considered as wrong (bug).

Comments

@aprabh001c
Copy link

What is your Scenario?

Testcafe is getting stuck or landing blank page for many pages. In many cases, testcafe gets stucks and launches a new browser. This behavior varies across the pages. Tried with both native automation ON and OFF, but still application new browser is launched and gets stuck in some other page.

What is the Current behavior?

Application landing on blank page / not loading property

What is the Expected behavior?

App load properly

What is the public URL of the test page? (attach your complete example)

https://www.xfinity.com

What is your TestCafe test code?

import { t, Selector } from "testcafe";

fixtureSampleFixture

test(SampleTC, async tn => {

await t.navigateTo("https://www.xfinity.com/learn/offers");
await t.wait(10000);
await t.click(Selector('button[id="onetrust-accept-btn-handler"], [aria-label="allow cookies"]'))
await t.typeText(Selector('input[name="localizationAddressField"]'), "8299 COMCAST, UNIT 100, BLUEFIELD, WV 24701");
await t.wait(3000)
await t.click(Selector('.suggestions-select__item'))
await t.click(Selector('button[type="submit"]').withText('Build your plan'));
await t.wait(10000);
await t.click(Selector('[data-testid="Internet-lob-drawer-cta"]'))
await t.wait(5000)
await t.click(Selector('button[data-testid="offer-tile-Connect"]'))

})

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

import { t, Selector } from "testcafe";

fixtureSampleFixture

test(SampleTC, async tn => {

await t.navigateTo("https://www.xfinity.com/learn/offers");
await t.wait(10000);
await t.click(Selector('button[id="onetrust-accept-btn-handler"], [aria-label="allow cookies"]'))
await t.typeText(Selector('input[name="localizationAddressField"]'), "8299 COMCAST, UNIT 100, BLUEFIELD, WV 24701");
await t.wait(3000)
await t.click(Selector('.suggestions-select__item'))
await t.click(Selector('button[type="submit"]').withText('Build your plan'));
await t.wait(10000);
await t.click(Selector('[data-testid="Internet-lob-drawer-cta"]'))
await t.wait(5000)
await t.click(Selector('button[data-testid="offer-tile-Connect"]'))

})

TestCafe version

3.6

Node.js version

18.12.0

Command-line arguments

testcafe chrome --concurrency 1 -F SampleFixture

Browser name(s) and version(s)

chrome 124.0.6367.119

Platform(s) and version(s)

Windows 10 Enterprise

Other

No response

@aprabh001c aprabh001c added the TYPE: bug The described behavior is considered as wrong (bug). label May 7, 2024
@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 7, 2024
@aprabh001c
Copy link
Author

Error message in console - The Chrome 124.0.0.0 / Windows Server 2019 browser disconnected. If you did not close the browser yourself, browser performance or network issues may be at
fault.

@PavelMor25
Copy link
Collaborator

Hello @aprabh001c ,

I can't reproduce the issue; I'm getting an "access denied" error. Could you please create a minimal working example?

image

@PavelMor25 PavelMor25 added STATE: Need clarification An issue lacks information for further research. and removed STATE: Need response An issue that requires a response or attention from the team. labels May 10, 2024
@aprabh001c
Copy link
Author

aprabh001c commented May 10, 2024 via email

@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 10, 2024
@github-actions github-actions bot removed the STATE: Need clarification An issue lacks information for further research. label May 10, 2024
@PavelMor25
Copy link
Collaborator

Hello,

I tried both options, but I still encounter this error and can't investigate the issue. Could you please create a minimal working example? Alternatively, if you have any other method for us to investigate the issue, please let us know.

@PavelMor25 PavelMor25 added STATE: Need clarification An issue lacks information for further research. and removed STATE: Need response An issue that requires a response or attention from the team. labels May 14, 2024
@aprabh001c
Copy link
Author

aprabh001c commented May 14, 2024 via email

@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 14, 2024
@github-actions github-actions bot removed the STATE: Need clarification An issue lacks information for further research. label May 14, 2024
@PavelMor25
Copy link
Collaborator

Hello @aprabh001c,

I managed to resolve the "access denied" error. It occurred during the text input step because the server limited access for some time due to a high number of requests. I was able to avoid this issue with a workaround. I used ClientFunction to add the necessary address to the clipboard and then inserted it into the input field with the pressKey method. After this, the test fails at the last step when searching for the element button[data-testid="offer-tile-Connect"].

However, I still couldn't reproduce the initial issue (Windows 10 / Node.js 18.12.0 & 18.20.2 / TestCafe 3.4.0 - 3.6.0). Please specify if you can reproduce this behavior with older versions of TestCafe. Can you reproduce the issue on another machine? On which other sites do you encounter this issue?

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

No branches or pull requests

2 participants