Cant Login Into Nike With Python Selenium
Solution 1:
The solution given by colossatr0n in this thread Can a website detect when you are using Selenium with chromedriver? worked for me. Here is a partial copy, the idea is to replace cdc_ with another string in order not to be detected:
vim /path/to/chromedriver
After running the line above, you'll probably see a bunch of gibberish. Do the following:
Replace all instances of cdc_ with dog_ by typing :%s/cdc_/dog_/g. dog_ is just an example. You can choose anything as long as it has the same amount of characters as the search string (e.g., cdc_), otherwise the chromedriver will fail. To save the changes and quit, type :wq! and press return. If you need to quit without saving changes, type :q! and press return.
I also had to update the line to get the button:
button = driver.find_element_by_xpath("/html/body/div[4]/div[1]/div[1]/div[1]/div[7]/form/div[6]/input")
Selenium managed to login!
Post a Comment for "Cant Login Into Nike With Python Selenium"