I am trying to get whole text
but they do not give a whole text
is there any solution for that kindly recommend me these is the page link https://www.askgamblers.com/online-casinos/reviews/casino-friday
this is code:
from selenium import webdriver
import time
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
from bs4 import BeautifulSoup
import pandas as pd
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
import pandas as pd
from csv import writer
options = webdriver.ChromeOptions()
options.add_argument("--no-sandbox")
options.add_argument("--disable-gpu")
options.add_argument("--window-size=1920x1080")
options.add_argument("--disable-extensions")
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
wait = WebDriverWait(driver, 10)
url = "https://www.askgamblers.com/online-casinos/reviews/casino-friday"
driver.get(url)
key=[]
value=[]
pays =driver.find_element(By.XPATH,"//h2[text()[contains(.,'Virtual Games')]]/following-sibling::p").text
print(pays)