-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get_text() not working #468
Comments
cool. Can you give me the output of what happens when you execute $driver->debug_on() before you execute these statements? I want to know if this is an upstream driver problem, or something due to S::R::D. (It's probably the former, in which case I'll have to make yet another polyfill, yay) |
I think this is what you're after:
|
Indeed it is. Thank you. So, as usual it's misbehavior from the upstream driver. |
OK, just out of curiosity, what do you mean by "polyfill wrapping" ? |
There are a number of subroutines in S::R::D that work around misbehaving drivers, or implement functionality from JSONWire which is missing in WC3 selenium. In this case I'd just make getElementText execute javascript and return element.innerText(). In my experience, selenium drivers are so unreliable that you may as well just flush it down the toilet and write javascript; |
I have found that
get_text()
is not working and just returns blank string and I have to doget_attribute('innerText')
instead to get the text. I have version 1.42 installed.The text was updated successfully, but these errors were encountered: