Skip to content
This repository was archived by the owner on Mar 2, 2024. It is now read-only.

Commit e2ee78c

Browse files
Hotfix
1 parent 5072a21 commit e2ee78c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tinder/login/tinderlogin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self, driver, type = Config['login_method']):
1818
elif type == 'facebook':
1919
self.methodLogin = FacebookLogin(driver)
2020
else:
21-
raise RuntimeError('Undefined or unrecognized login method to Tinder')
21+
raise RuntimeError('Undefined or unrecognized login method to Tinder.')
2222

2323
def logIn(self):
2424
driver = self.driver
@@ -33,7 +33,7 @@ def logIn(self):
3333
sleep(2)
3434
self.chooseLang()
3535
sleep(2)
36-
driver.find_element_by_xpath('/html/body/div[1]/div/div[1]/div/main/div[1]/div/div/div/div/header/div/div[2]/div[2]/button').click()
36+
driver.find_element_by_xpath('/html/body/div[1]/div/div[1]/div/main/div[1]/div/div/div/div/header/div/div[2]/div[2]/a').click()
3737
sleep(2)
3838
if self.type == 'google':
3939
self.__logInViaGoogle()

0 commit comments

Comments
 (0)