AnthonyZJiang / Microsoft-Rewards-Bot

Microsoft Rewards (Bing Rewards) Bot - automated selenium python bot
27 stars 4 forks source link

Cannot find UserStatus still persistent on v2.2.0 #24

Open Nergly opened 2 years ago

Nergly commented 2 years ago

Untitle2d

PaC0h commented 1 year ago

i have found 1 of 2 issues can cause this sometimes both

1- make sure your user agents are up to date, at least 105.x.x or newer for edge/chrome

2- some systems are slower and sometimes it times out before it can get the info changing he below seems to really help, i have only seen the issue 2-3 times since changing it

modify the stats.py found in account folder

change the wait times from 1 and 4 to 3 and 5 as below near line 88

    self._browser.open_in_new_tab(DASHBOARD_URL)
    time.sleep(3)

    if self._browser.click_element(By.XPATH, '//a[contains(@class, "signup-btn welcome")]', ignore_no_ele_exc=True):
        logging.debug('Welcome page detected.')
        time.sleep(5)

if you still have issues, try changing dashboard url time sleep to 5 instead of 3