Skip to content
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

textField("id") is not working for html inputs with types 'email' or 'password' #4

Open
AlexanderArendar opened this issue Oct 18, 2016 · 0 comments

Comments

@AlexanderArendar
Copy link

I see in the DSL sources following:

private def isTextField(webElement: WebElement): Boolean = 
webElement.getTagName.toLowerCase == "input" && webElement.getAttribute("type").toLowerCase == "text"

why is the type hardcoded only to "text" value?
I am writing the test which needs to deal with html inputs of type "email" an "password" and then I'm getting exception.
Of course I can write directly driver.findElement(By.xpath(blablabla)) but that way I don't need the DSL at all.
Are there some reasons for this hardcode or this can be fixed by a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant