Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Does NOT log in to Target. #100

Open
infowire opened this issue Mar 20, 2021 · 2 comments
Open

[BUG] Does NOT log in to Target. #100

infowire opened this issue Mar 20, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@infowire
Copy link

infowire commented Mar 20, 2021

# Expected Behavior

Log in target.com

# Actual Behavior

Target website gets and error while logging in.
Proceeds without longing in.

# Screenshots


Target

# Repro Steps

Run a usual task for target.

# Possible Fix
Where is the log in link stored for target?
Changing your URL to

FROM:
https://login.target.com/gsp/static/v1/login/?client_id=ecom-web-1.0.0&ui_namespace=ui-default&back_button_action=browser&keep_me_signed_in=true&kmsi_default=false&actions=create_session_signin

TO:
https://login.target.com/gsp/static/v1/login/?client_id=ecom-web-1.0.0&ui_namespace=ui-default&back_button_action=browser&keep_me_signed_in=true&kmsi_default=false&actions=create_session_signin&username={YOUREMAIL}

Change {YOUREMAIL} with your email for target log in.

# Desktop Configuration

  • OS: Windows 10
  • Browser Chrome
  • Version 89

# Go Around
Once the browser loads, wait till it gets to the product page, click duplicate the page and log in normally. The refreshing page should be now logged in. Hopefully that works.

@infowire infowire added the bug Something isn't working label Mar 20, 2021
@rodriada000 rodriada000 removed their assignment Mar 22, 2021
@dsalaz04
Copy link

dsalaz04 commented Mar 25, 2021

I got it working but the fix isn't very clean. I could look into it more but for now just open up sites/target.py and change these lines 66 and 67:

wait(self.browser, self.TIMEOUT_LONG).until(EC.presence_of_element_located((By.ID, "username"))) self.fill_and_authenticate()

to:

wait(self.browser, self.TIMEOUT_LONG).until(EC.presence_of_element_located((By.ID, "username"))) self.browser.get("https://login.target.com/gsp/static/v1/login/?client_id=ecom-web-1.0.0&ui_namespace=ui-default&back_button_action=browser&keep_me_signed_in=true&kmsi_default=false&actions=create_session_signin&username=YOUR_EMAIL") self.fill_and_authenticate()

I had to run it twice and manually click "skip" on the phone number page but it successfully logged in after that.

@kennymkchan
Copy link

Running into the same errors here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants