I am trying to read the webpage where after selecting the dropdown menu, the message is displayed. When the message appears it has class
<div class="alert alert-info border-0 rounded-0"> No update currently available </div>
I wrote the following code to read the text but always getting an exception
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
alert = WebDriverWait(driver, 5).until(EC.alert_is_present)
print(alert.text)
at the line with webdriver wait, I am getting the below error
__init__() takes 1 positional argument but 2 were given
My goal is to read the text in the alert class and validate it further. Any help will be appreciated.