gbrodman / order-tracking

Automated Amazon and Best Buy order tracking for buying groups
GNU Affero General Public License v3.0
33 stars 13 forks source link

Firefox issue #190

Closed markspivey closed 3 years ago

markspivey commented 3 years ago

@gbrodman I'm trying to invoke Firefox as I seem to be having cache issues with using Chrome, but I am running into the following issue:

python get_tracking_numbers.py --firefox Retrieving Amazon tracking numbers from email ... Searching for emails since 29-Mar-2021 Found 1 unread Amazon shipping emails in the dates we searched. Traceback (most recent call last): File "get_tracking_numbers.py", line 126, in main() File "get_tracking_numbers.py", line 43, in main trackings = amazon_tracking_retriever.get_trackings() File "Documents\GitHub\order-tracking\lib\email_tracking_retriever.py", line 70, in get_trackings self.driver = self.log_in_if_necessary() File "Documents\GitHub\order-tracking\lib\amazon_tracking_retriever.py", line 194, in log_in_if_necessary driver = self.driver_creator.new() File "Documents\GitHub\order-tracking\lib\driver_creator.py", line 25, in new return self._new_firefox_driver(wait, page_load) File "Documents\GitHub\order-tracking\lib\driver_creator.py", line 120, in _new_firefox_driver options.headless = self.headless AttributeError: 'DriverCreator' object has no attribute 'headless'

markspivey commented 3 years ago

Fixed by setting

options.headless = False

in Row 120 of driver_creator.py.