Best Online Casinos
1. Sol Casino
Free Sign-Up Bonus: 100 Free Spins ( Free Sign-Up Bonus Link )
First Deposit Bonus: 200% up to €/$ 300 ( Registration Link )
2. Fresh Casino
Free Sign-Up Bonus: 60 Free Spins ( Free Sign-Up Bonus Link )
First Deposit Bonus: 200% up to €/$ 200 ( Registration Link )
3. Jet Casino
Free Sign-Up Bonus: 60 Free Spins ( Free Sign-Up Bonus Link )
First Deposit Bonus: 200% up to €/$ 300 ( Registration Link )
Selenium does not find existing elements that can be found by the browser aba elements and by using js in console
I’m trying to automate the bet365 casino, I know they have tools to block bots.
link :https://casino.bet365.com/Play/LiveRoulette
I can’t handle anything that’s inside the div class=”app-container”, at least by selenium. But I find these elements using JavaScript in the browser console.
import undetected_chromedriver as UChrome from webdriver_manager.chrome import ChromeDriverManager
UChrome.install(ChromeDriverManager().install())
from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.by import By
driver = UChrome.Chrome() driver.get(‘https://www.bet365.com/#/HO/’)
after login
driver.get(‘https://casino.bet365.com/Play/LiveRoulette’)
locator = (By.XPATH,’//*[contains(@class, “second-dozen”)]’)
I try probably the selectors should be a little different
driver.execute_script(‘return document.getElementsByClassName(“roulette-table-cell roulette-table-cell_side-first-dozen roulette-table-cell_group-dozen”)[0].getBoundingClientRect()’)
Try
driver.find_element(locator[0], locator[1])
but I recive this: raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: “method”:”xpath”,”selector”:”(//*[contains(text(), “PAR”)])[1]” (Session info: chrome=96.0.4664.110) Stacktrace: 0 0x55f8fa1bcee3
1 0x55f8f9c8a608
2 0x55f8f9cc0aa1