Script working fine on MAC Chrome headless but throwing error on Linux Chrome headless

Did you ensure that element was “ready” before accessing it? You don’t necessarily need to target it specifically, you could try waiting for something else on the page (preferably further down the hierarchy).

Does this code work in the working system? (You should be checking that as we move forward).

I’m also wondering if we followed a false trail here - it’s hard for me to tell from here.