element = wait.until(EC.presence_of_element_located((By., '//*[@id="liveAgentChatLogText"]//*[contains(string(.), "THE_TEXT_STRING_I_AM_LOOKING_FOR")]')

driver.find_element_by_('//*[@id="contactFirstName"]').send_keys(firstName)
driver.find_element_by_('//*[@id="contactLastName"]').send_keys(lastName)

This one would say for an example, it’d say “SyntaxError: ”,
the second one.

element = wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="liveAgentChatLogText"]//*[contains(string(.), "THE_TEXT_STRING_I_AM_LOOKING_FOR")]')

SyntaxError: unexpected EOF while parsing

So, I really have no clue what to do, everything that’s underneath the code, says invalid syntax, and if it’s above it says unexpected EOF…



Source link https://sqa.stackexchange.com/questions/35495/-xpath-invalid-syntax

LEAVE A REPLY

Please enter your comment!
Please enter your name here