Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

getVal for input #2973

Open
Open
@philn5d

Description

@philn5d

from the FAQ.md

"The result of getText from an input element is always empty

This is a webdriver quirk. and <textarea> elements always have empty getText values. Instead, try element.getAttribute('value') ."

Why not make a getValue() or getVal()? Or map getText() if the input type is input or textarea?

I know it seems trivial to do so, but there are maybe some reasons?

Suggest modeling getVal() after JQuery val(), maybe I'm not the first to make this suggestion, but it didn't seem to come up in an issues search.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions