Failed to click login button #8295
Labels
STATE: Need clarification
An issue lacks information for further research.
STATE: Need simple sample
A simple sample is required to examine the issue.
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
In our login test case, the script successfully enters the Username and Password, and it clicks the Login button, but it does not navigate to the next page (Looks just like its hovering over the button) . As a result, the next test fails due to the absence of the expected locator in the DOM
What is the Current behavior?
In our login test case, the script successfully enters the Username and Password, and it clicks the Login button, but it does not navigate to the next page (Looks just like its hovering over the button) . As a result, the next test fails due to the absence of the expected locator in the DOM
What is the Expected behavior?
It should click and navigate to next page so that other tests get appropriate locators over the DOM
What is the public URL of the test page? (attach your complete example)
Not Public Yet
What is your TestCafe test code?
await new action.Click({
testControl: t,
options: {
mappings: mappings,
language: language,
category: 'Login',
action: 'click',
data: 'Login'
}
}).execute();
Your complete configuration file
import action from './action';
const actionList = {
CLICK: action.Click,
DOUBLECLICK: action.Click,
NAVIGATETOMENU: action.NavigateToMenu,
TYPETEXT: action.TypeText,
APPENDTEXT: action.TypeText,
ASSERT: action.Assert,
BACK: action.NextBack,
NEXT: action.NextBack,
SCROLL: action.Scroll,
CONDITIONALCLICK: action.ConditionalClick,
READVALUE: action.ReadValue,
PRESSKEY: action.PressKey,
UPLOAD: action.Upload,
DRAG: action.DragToElement,
WAIT: action.Wait,
PROCESSXML: action.ProcessXml,
FILEACTION: action.FileAction,
FETCHCYCLEDETAIL: action.FetchCycleDetail,
HOVER: action.Hover
}
export interface ITestCase {
number: string,
category: string,
steps: string,
execute: boolean,
success?: boolean
}
export interface ITestRunner {
mappings: { [key: string]: any },
language: { [key: string]: any },
categories: { [key: string]: any },
testCases: ITestCase[]
}
class TestCaseBuilder implements ITestRunner {
mappings = null
categories = null
language = null
testCases = []
Your complete test report
The specified selector does not match any element in the DOM tree.
Browser: Chrome 129.0.0.0 / Windows 11
1/1 failed (13s)
Screenshots
No response
Steps to Reproduce
2.Enter Password
TestCafe version
3.6
Node.js version
20.XXX
Command-line arguments
direct testcasebulilder file
Browser name(s) and version(s)
any
Platform(s) and version(s)
No response
Other
No response
The text was updated successfully, but these errors were encountered: