Code:
import os
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException, NoSuchFrameException
from webdriver_manager.chrome import ChromeDriverManager

def scrape_aviator_history():
    driver = None
    multipliers = []
    SCREENSHOT_DIR = "screenshots"

    if not os.path.exists(SCREENSHOT_DIR):
        os.makedirs(SCREENSHOT_DIR)

    options = webdriver.ChromeOptions()
    options.add_argument('--no-sandbox')
    options.add_argument('--disable-dev-shm-usage')
    options.add_argument('--window-size=1920,1080')

    try:
        driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
        wait = WebDriverWait(driver, 20)

        # Login process
        driver.get("https://betika.com/en-ke/login")
        print("Opened Betika login page.")

        try:
            close_modal_button = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button.close-modal")))
            close_modal_button.click()
            print("Closed modal.")
        except TimeoutException:
            print("No modal to close.")

        phone_input = wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, "div.session__form__input.session__form__phone input.input")))
        phone_input.clear()
        phone_input.send_keys("0703972766")
        print("Entered phone number.")

        password_input = wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, "div.session__form__input.session__form__password input.input")))
        password_input.clear()
        password_input.send_keys("ComplexPass123!")
        print("Entered password.")

        login_button = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button.session__form__button.login.button.button__secondary")))
        login_button.click()
        print("Clicked login button.")

        time.sleep(5)
        
        driver.get("https://betika.com/en-ke/aviator")
        print("Navigated to Aviator page.")
        time.sleep(20)  # Extended wait for page load
        driver.save_screenshot(os.path.join(SCREENSHOT_DIR, "aviator_page.png"))

        iframes = driver.find_elements(By.TAG_NAME, "iframe")
        print(f"Found {len(iframes)} iframes on the page.")

        def extract_multipliers_from_context():
            try:
                # Navigate through the DOM structure
                history_container = wait.until(EC.presence_of_element_located(
                    (By.CSS_SELECTOR, "div.result-history.disabled-on-game-focused.my-2")))
                stats_dropdown = history_container.find_element(By.CSS_SELECTOR, "div.stats.dropdown")
                payouts_wrapper = stats_dropdown.find_element(By.CSS_SELECTOR, "div.payouts-wrapper")
                payouts_block = payouts_wrapper.find_element(By.CSS_SELECTOR, "div.payouts-block")
                
                multiplier_elements = payouts_block.find_elements(
                    By.CSS_SELECTOR, "app-bubble-multiplier.payout.ng-star-enabled")
                
                print(f"Found {len(multiplier_elements)} multiplier elements.")
                
                local_multipliers = []
                for element in multiplier_elements:
                    try:
                        bubble_div = element.find_element(
                            By.CSS_SELECTOR, "div.bubble-multiplier.font-weight-bold")
                        
                        # Get the style attribute
                        style_attr = bubble_div.get_attribute("style")
                        print(f"Style attribute: {style_attr}")
                        
                        # Extract the multiplier from the div's text
                        multiplier_text = bubble_div.text.strip()
                        if multiplier_text:
                            local_multipliers.append(multiplier_text)
                            print(f"Extracted multiplier: {multiplier_text}")
                    
                    except Exception as e:
                        print(f"Error extracting individual multiplier: {e}")
                
                return local_multipliers
                
            except Exception as e:
                print(f"Error in extract_multipliers_from_context: {e}")
                return []

        # Try in main context first
        main_multipliers = extract_multipliers_from_context()
        if main_multipliers:
            multipliers.extend(main_multipliers)
            print("Found multipliers in main context.")
        else:
            print("No multipliers found in main context, trying iframes...")

        # If no multipliers found in main context, try iframes
        if not multipliers:
            for index, iframe in enumerate(iframes):
                try:
                    driver.switch_to.frame(iframe)
                    print(f"Switched to iframe {index}")
                    driver.save_screenshot(os.path.join(SCREENSHOT_DIR, f"iframe_{index}.png"))
                    
                    iframe_multipliers = extract_multipliers_from_context()
                    if iframe_multipliers:
                        multipliers.extend(iframe_multipliers)
                        print(f"Found multipliers in iframe {index}")
                        break
                    
                except Exception as e:
                    print(f"Error processing iframe {index}: {e}")
                finally:
                    driver.switch_to.default_content()

    except Exception as e:
        print(f"An error occurred during scraping: {e}")
        if driver:
            driver.save_screenshot(os.path.join(SCREENSHOT_DIR, "error_screenshot.png"))
    
    finally:
        if driver:
            driver.quit()
    
    return multipliers

def main():
    try:
        multipliers = scrape_aviator_history()
        if multipliers:
            print(f"\nFound {len(multipliers)} multipliers:")
            for idx, multiplier in enumerate(multipliers, start=1):
                print(f"{idx}: {multiplier}")
        else:
            print("\nNo multipliers found or scraping failed.")
    except Exception as e:
        print(f"\nAn unexpected error occurred in main: {e}")

if __name__ == "__main__":
    main()

Error:
Opened Betika login page.
No modal to close.
Entered phone number.
Entered password.
Clicked login button.
Navigated to Aviator page.
Found 11 iframes on the page.
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

No multipliers found in main context, trying iframes...
Switched to iframe 0
Found 0 multiplier elements.
Switched to iframe 1
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 2
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 3
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 4
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 5
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 6
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 7
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 8
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 9
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]

Switched to iframe 10
Error in extract_multipliers_from_context: Message: 
Stacktrace:
	GetHandleVerifier [0x00677143+25587]
	(No symbol) [0x0060A2E4]
	(No symbol) [0x00502113]
	(No symbol) [0x00546F62]
	(No symbol) [0x005471AB]
	(No symbol) [0x00587852]
	(No symbol) [0x0056ABE4]
	(No symbol) [0x00585370]
	(No symbol) [0x0056A936]
	(No symbol) [0x0053BA73]
	(No symbol) [0x0053C4CD]
	GetHandleVerifier [0x00954C63+3030803]
	GetHandleVerifier [0x009A6B99+3366473]
	GetHandleVerifier [0x007095F2+624802]
	GetHandleVerifier [0x00710E6C+655644]
	(No symbol) [0x00612C9D]
	(No symbol) [0x0060FD68]
	(No symbol) [0x0060FF05]
	(No symbol) [0x00602336]
	BaseThreadInitThunk [0x76277BA9+25]
	RtlInitializeExceptionChain [0x77C5C11B+107]
	RtlClearBits [0x77C5C09F+191]


No multipliers found or scraping failed.