hardStudy question · answer published in Automation Testing interview questions, so no pointsui-automationselenium
getText() returns an empty string
A hidden <span> with display:none holds a tracking number. Selenium's getText() returns "". What explains this, and how do you read it?
Discussion 0
Join free to post in the discussion.
Related questions
- Choosing a stable locatorAutomation Test Engineer
- Waiting for an elementAutomation Test Engineer
- Headless modeAutomation Test Engineer
- How Selenium talks to a browserAutomation Test Engineer
- Finding a button by role and nameAutomation Test Engineer
- Recording a first draft of a testAutomation Test Engineer
- Stepping through a failing testAutomation Test Engineer
- What a browser context gives youAutomation Test Engineer