Some may need to use Bonjour printing if the Mac's system is older;
others may be able to use an AirPrint feature. ~ If your wife's Mac is
of a different system version and build model than your posted info
in the footer of your inquiry, it may help to detail that one specifically.
For some older systems, HP may have a driver and software update
however some newer systems have the most popular printer drivers.
There may be information on how to set up the printer, & drivers here:
Download the latest software and drivers for your HP Deskjet 3050A e-All-in-One Printer ...
How does HP install software and gather data? ... on certain HP Printers, ...
https://support.hp.com/us-en/product/HP-Deskjet-30....
My HP printers did OK until they failed & the estimated cost of repair was $$$!
So I bought a few different featured Epson models. (Later, ink is a problem.)
Good luck & happy trails! 🙂