question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trigger dayClick programmatically, for automated testing

See original GitHub issue

Originally reported on Google Code with ID 1325

Consider the following code

$(".fc-day10:first").trigger("click")

I am expecting this to have the same effect as left clicking fc-day10 manually with
the mouse. However, it does not. I also tried:

$(".fc-day10:first").trigger("click", {"which": 1})

Looking at the code I am suspect I might have to use a combination like mousedown and
then mouseup. I would really like to be able to trigger dayClick programmatically for
testing.

Related is the following posts and stack overflow:
http://stackoverflow.com/questions/3931103/intergration-tests-for-fullcalendar
http://stackoverflow.com/questions/6134708/selenium-click-not-working-on-some-anchor-elements


Reported by christiaan.vanzyl on 2012-03-04 12:08:57

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gustavogrcommented, Sep 21, 2021

Is there any update on this? We are struggling with the same problem that we cannot test the FC functionality in automated tests.

1reaction
evanjmgcommented, Aug 22, 2017

Any update on this? @arshaw - this is not hacky. All proper software development teams write end to end tests to test their applications. Selenium cannot click a full calendar date unless it simulates the mouse over and everything else which is kind of ridiculous. My workaround for this is (in protractor): browser.actions().mouseDown(element(by.css(arg))).mouseUp().perform()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Externally triggering FullCalendar's 'dayClick' method?
I'm using Arshaw's FullCalendar and I'm looking to simulate a user clicking on a cell once the page has loaded. I'm trying to...
Read more >
Reactjs FullCalendar open Sweetalert on dayclick - Therichpost
Friends, in this post, I am opening sweetalert modal popup on dayclick fullcalendar event into my reactjs application.
Read more >
fullcalendar/CHANGELOG.md - UNPKG
252, - dayClick triggered when swiping on touch devices (#3332). 253, - dayClick not functioning on ... 414, - misc automated test updates...
Read more >
@fullcalendar/moment | Yarn - Package Manager
... dayClick triggered when swiping on touch devices (#3332); dayClick not ... An automated testing framework has been set up (Karma + Jasmine)...
Read more >
How to Automate Processing of Azure Analysis Services Models
Info($”C# Timer trigger function finished at: {DateTime.Now}”);. } Click the Save button at the top. 7. Time to test your function app!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found