-
Notifications
You must be signed in to change notification settings - Fork 55
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
Way to get Text of element? #36
Comments
I've only just started using these bindings but the other day I tried to read the text from a textfield based on what the API says; $session->element(...)->getText(); //as far as I remamber, or it might be just ->text() But that didn't work (returned the empty string) so I had to get the text via the $session->element(...)->attribute('value') Try |
Alright thanks, I'll try it out and let you know what I figure out. |
Yea ->text() seems to do the trick for values inside a specific element tag. Thanks. |
👍 |
Hey great work on the library by the way.
I've been looking around and can't seem to find any functionality to get text within an element or an attribute. For example If I was trying to get the text inside a textarea element
Is there are current implementation to do this or will you be adding it in the near future?
The text was updated successfully, but these errors were encountered: