testcafe icon indicating copy to clipboard operation
testcafe copied to clipboard

Unable to Login to Guidewire application

Open Subhasish14 opened this issue 3 years ago • 7 comments

What is your Scenario?

Hello ,

I am trying to automate a Guidewire Application using testCafe. But I am facing navigation issue. I am unable to login with username password and navigate to the home page . The script is entering username and password values in respective fields then clicking on login. But it is not navigating to next page .

Can you please give any idea what i should do to resolve this issue ?

What is the Current behavior?

The script is not navigating to next page after clicking on login button in login page.

What is the Expected behavior?

The script should navigate to next page after clicking on login button .

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

http://su:[email protected]:8180/pc/PolicyCenter.do

What is your TestCafe test code?

import {Selector, ClientFunction, fixture} from 'testcafe'

fixture test .page http://44.241.32.245:8280/ab/ContactManager.do

test ('PC login test', async t=>{

await t.maximizeWindow();

const username = Selector('input').withAttribute('name', 'Login-LoginScreen-LoginDV-username');
const password = Selector('input').withAttribute('name', 'Login-LoginScreen-LoginDV-password');
const login = Selector('div').withText('Log In');


await t.typeText(username,'su')
await t.typeText(password,'gw')
await t.setNativeDialogHandler(() => true).click(login)

await t.expect(Selector('#TabBar-LogoutTabBarLink').innerText).contains('Log Out Super User') })

Your complete configuration file

No response

Your complete test report

No response

Screenshots

No response

Steps to Reproduce

1.Open the application login page 2.give login credential 3.velidate that home page is displayed

TestCafe version

1.18.6

Node.js version

17

Command-line arguments

npm run test

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

Subhasish14 avatar Jun 15 '22 14:06 Subhasish14

Hello,

Thank you for your report. We would love to assist you and diagnose this issue. However, our policy prevents us from accessing internal resources without a prior written approval from a site owner. If you'd like us to research the issue further directly on your side, please ask the website owner to send us ([email protected]) a written confirmation. It must permit DevExpress personnel to remotely access the website and its internal resources for research/testing/and debugging purposes.

Dmitry-Ostashev avatar Jun 16 '22 07:06 Dmitry-Ostashev

@Dmitry-Ostashev Provided access to the website. Please refer below image for clarity - image

Subhasish14 avatar Jun 16 '22 15:06 Subhasish14

Thank you for the approval. I was able to reproduce the issue. For the Team: you can see the problem also when opening the website via the testcafe-hammerhead playground.

Dmitry-Ostashev avatar Jun 17 '22 13:06 Dmitry-Ostashev

@Dmitry-Ostashev Hello , any update on this issue ?

Subhasish14 avatar Jun 27 '22 12:06 Subhasish14

No updates yet. Once we get any results, we will post them in this thread.

github-actions[bot] avatar Jun 28 '22 06:06 github-actions[bot]

@Dmitry-Ostashev Hello , any update on this issue ?

Subhasish14 avatar Jul 21 '22 12:07 Subhasish14

No updates yet. Once we get any results, we will post them in this thread.

github-actions[bot] avatar Jul 25 '22 07:07 github-actions[bot]

We will close this issue since it is fixed in the Native Automation mode. Please try the native automation mode in your tests. Feel free to reopen the issue if you need a fix for the other browsers or you cannot use Native Automation for some reason.

Artem-Babich avatar Apr 13 '23 06:04 Artem-Babich

how to enable native automation mode in testcafe

Jagadesh770 avatar Jan 09 '24 21:01 Jagadesh770

Hello @Jagadesh770,

TestCafe v3.0.0 and newer enable native automation mode out of the box. Please refer to the following help topic to learn more about Native Automation.

PavelMor25 avatar Jan 10 '24 08:01 PavelMor25

I upgraded my testcafe version to above 3.0.0v. but now I am facing an issue

"TypeError: Cannot destructure property 'baseUrl' of 'undefined' as it is undefined. at new APIBasedTestFileCompilerBase (C:\Users\JagadeshKoduru\gt-framework-2022.9.0\gt-framework\gt-ui\node_modules\testcafe\src\compiler\test-file\api-based.js:40:20)"

Screenshot 2024-01-10 155915

Jagadesh770 avatar Jan 10 '24 10:01 Jagadesh770

This ticket is closed. Please create a separate ticket using this template and add a Minimal Working Example without Cucumber, as officially, we do not support it in TestCafe.

PavelMor25 avatar Jan 11 '24 07:01 PavelMor25