nickirk / immo

A bot which monitors immoscout24 and wg-gesucht.de for new flat offers and send requests to offers automatically.
GNU General Public License v3.0
146 stars 44 forks source link

The cookie popup is an issue ? #3

Closed wadie closed 4 years ago

wadie commented 5 years ago

When attempting to send a message on wg-gesucht, I get the following error:

Message: element click intercepted: Element <button class="btn btn-info pull-right create_new_conversation" type="submit" tabindex="5">...</button> is not clickable at point (653, 569). Other element would receive the click: <p class="cookie-message">...</p>

Maybe we should ignore their cookie popup so we're able to click on create_new_conversation ?

Full Traceback: Screenshot_2019-08-06 Default - Codeanywhere

nickirk commented 5 years ago

This is a new change on their website, due to the GDPR (general data protection regulation), one can just click the "Agree" or "Ok" button in a similar fashion like this

submit_button1 = driver.find_element_by_xpath("//button[@data-ng-click='submit()' or contains(.,'Nachricht senden')]")
submit_button1.click()

Just have a look into the source code of the website and identify the button. Sorry, this is not a blackbox tool since the website constantly changes/adds new stuff. And I cannot follow their moves and modify the script accordingly. But it can be solved and I will be happy to offer technical support to you when you try to solve the problem. If you managed to solve it, please add a pull request to the repository. Once it runs, it really saves you a lot of time and effort.