What are the fundamental differences when running automation in headless mode? Encountering possible JS exception only in headless mode
On a high level this is what I am experiencing:
Typescript and Moment.js is used to map and sort a list of dates "YYYY-MM-DD" which go into a drop down as the below example HTML attempts to show (this code is formatted but not setup to run):
When I turn headless mode off this exception does not occur, on exactly the same parameters and environment as before.
Unfortunately my companies website which I am automating against makes use of some extremely archaic dependency libraries (example: Moment.js 2.5.0, and Bootstrap: v3.1.1) and they are in the near-term not going to upgrade any of those as the risk in breaking other things or having to re develop some features is not acceptable to them. So that is not helping anything with regards to the problem I will describe below.