Trigger dayClick programmatically, for automated testing
See original GitHub issueOriginally 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:
- Created 8 years ago
- Comments:9 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there any update on this? We are struggling with the same problem that we cannot test the FC functionality in automated tests.
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()