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

Onclick event handler is not executed when TestCafe clicks on the div #1138

Closed
AlexanderMoskovkin opened this issue Jan 16, 2017 · 3 comments
Assignees
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug).
Milestone

Comments

@AlexanderMoskovkin
Copy link
Contributor

AlexanderMoskovkin commented Jan 16, 2017

Are you requesting a feature or reporting a bug?

bug (converted from the discussion)

What is the current behavior?

An error Click occured outside the div!!! is raised during test execution (see the test)

What is the expected behavior?

Test should be passed

Provide the test code and the tested page URL (if applicable)

Test code

import { Selector } from 'testcafe';

fixture `Sample`
.page `https://rawgit.com/p-bakker/cb1113e61bf721551df08917cada1775/raw/3971d3ce01f5822b0675cebcaffb9b2822285335/test.html`;

test('div', async t => {
	const div = Selector('[data-sv-element-name="test"]')
		
	await t
	    .click(div)
            .expect(div.find('span').textContent).contains('it worked')
            .wait(2000); // just to see the page state
	}
)

Specify your

  • testcafe version: 0.12.0-alpha5
@AlexanderMoskovkin AlexanderMoskovkin added SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug). labels Jan 16, 2017
@AlexanderMoskovkin AlexanderMoskovkin added this to the Sprint #3 milestone Jan 16, 2017
@AlexanderMoskovkin
Copy link
Contributor Author

@AndreyBelym please take it

@AndreyBelym
Copy link
Contributor

Okay

AndreyBelym added a commit to AndreyBelym/testcafe that referenced this issue Jan 17, 2017
AndreyBelym added a commit to AndreyBelym/testcafe that referenced this issue Jan 17, 2017
AndreyBelym added a commit to AndreyBelym/testcafe that referenced this issue Jan 18, 2017
AndreyBelym added a commit to AndreyBelym/testcafe that referenced this issue Jan 18, 2017
@lock
Copy link

lock bot commented Mar 29, 2019

This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.

@lock lock bot added the STATE: Auto-locked An issue has been automatically locked by the Lock bot. label Mar 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 29, 2019
kirovboris pushed a commit to kirovboris/testcafe-phoenix that referenced this issue Dec 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
STATE: Auto-locked An issue has been automatically locked by the Lock bot. SYSTEM: automations TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

No branches or pull requests

2 participants