I have a program with python & selenium. I will print the program like this :
end-bubble bubble ok
end-bubble bubble high
My goals are like this:
ok
high
My idea is to print without the end-bubble bubble
only ok
or high
but I don't know how the script with python selenium.
Please give me solution.
This is my script :
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
driver = webdriver.Chrome (executable_path=r"C:\Users\rizki.abdillah\Desktop\Selenium\chromedriver.exe")
# maximize with maximize_window()
driver.maximize_window()
driver.get("https://status.cloud.google.com/")
# identify element
service_status = driver.find_elements_by_css_selector("tr>.day.col8>span").get_attribute("class")
print(service_status)