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

Alt attribute on buttons is not working #231

Open
sloba88 opened this issue Dec 28, 2015 · 2 comments
Open

Alt attribute on buttons is not working #231

sloba88 opened this issue Dec 28, 2015 · 2 comments

Comments

@sloba88
Copy link

sloba88 commented Dec 28, 2015

Hi,

The "alt" attribute on button is not clickable with "I press" method and this line https://github.com/Behat/MinkExtension/blob/master/src/Behat/MinkExtension/Context/MinkContext.php#L77
is misleading because it says you can use "alt" attribute on a button and it doesn't work either with <button alt="foo"> or <input type="submit" alt="foo" />

I don't know if this ever worked but it's not working now for me on master branch. I am using selenium standalone as a driver version 2.48.2 if that has something to do with it...

@stof
Copy link
Member

stof commented Dec 28, 2015

The alt attribute does not make sense for <button>. Buttons with a alt which is matched are <input type="image" alt="foo" /> (yes, this is a button in HTML)

@sloba88
Copy link
Author

sloba88 commented Dec 28, 2015

I agree but I used it exactly because it's not used anywhere else and I didn't want to tie tests to other changeable attributes.

Anyway I think "alt" should be removed from the given line and throwed exception for buttons only.

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

No branches or pull requests

2 participants