I want to make a check for the appearance of text on the page that is inside The text looks something like "Constantly different nickname" + "Constantly the same text" on the same line. I tried to make it like this
s = driver.find_element(By.XPATH, "//span[text()='has joined & will be ready to chat in just a minute.']").text()
print(s)
And many more different attempts, but nothing worked I need to get the whole string when its permanent part appears on the page