E
E
Evgeny572021-05-13 20:29:54
Angular
Evgeny57, 2021-05-13 20:29:54

How to fix error on pages while running webdriver?

I use the code for automation on the Roobet website

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC


def main():
  global driver
options = webdriver.ChromeOptions() 
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
driver = webdriver.Chrome(options=options)
driver.get("https://roobet.com")


if name == 'main':
  main()

For some reason, when working, these are the errors 609d61d0342a6848472448.jpeg
Help me understand what the problem is

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Stroykin, 2018-11-16
@IvanWebProgrammer

Implementation example: stackblitz

W
webs2018, 2018-11-16
@webs2018

www.quizful.net/interview/programming/nayti-chislo...

T
Ternick, 2021-05-13
@Ternick

No way, it's not about selenium, it's about the site and its internal scripts. Typically, such errors are rarely critical for the user, i.e. core functionality is not lost.
Here is my console after loading the site.

KLATS
imagea7ac1f99de56f1c5.png

By the way, a similar question leads me to the fact that you do not understand what selenium is)
Ate very briefly, then this is your browser, with minor amendments to its settings that allow the browser to click on buttons, see elements and much more, these changes almost never affect the site itself, if it works in a regular browser, it will work with selenium. But, it should be noted that some sites analyze your browser settings and can recognize selenium with all the ensuing consequences)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question