[arquillian-issues] [JBoss JIRA] (ARQAJO-102) Get value of attribute disabled returns true instead of the actual value - disabled
Juraj Huska (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Wed Dec 21 05:48:09 EST 2011
[ https://issues.jboss.org/browse/ARQAJO-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652498#comment-12652498 ]
Juraj Huska edited comment on ARQAJO-102 at 12/21/11 5:47 AM:
--------------------------------------------------------------
When I was investigating further about this issue a find out, that is is caused by using *Selenium 2 API*, which defines getAttribute as follow:
http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/WebElement.html#getAttribute(java.lang.String)
What I can not quite understand is why it uses WebDriver API *instead of* Selenium API:
http://selenium.googlecode.com/svn/trunk/docs/api/java/index.html
need to investigate further.
was (Author: jhuska):
When I was investigating further about this issue a find out, that is is caused by using *Selenium 2 API*, which defines getAttribute as follow:
http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/WebElement.html#getAttribute(java.lang.String)
What I can not quite understand is why it uses WebDriver API *instead of* Selenium API:
http://selenium.googlecode.com/svn/trunk/docs/api/java/index.html
> Get value of attribute disabled returns true instead of the actual value - disabled
> -----------------------------------------------------------------------------------
>
> Key: ARQAJO-102
> URL: https://issues.jboss.org/browse/ARQAJO-102
> Project: Arquillian Ajocado
> Issue Type: Bug
> Components: core
> Affects Versions: 1.0.0.CR2
> Reporter: Juraj Huska
> Assignee: Lukáš Fryč
>
> Running this code:
> {code}
> AttributeLocator<?> disabledAttribute = button.getAttribute(new Attribute("disabled"));
> String isDisabled = selenium.getAttribute(disabledAttribute);
> {code}
> will result in state where *isDisabled will contain String true, instead of actual value disabled.*
> The .jsp page, just for completeness, contains this input:
> {code}
> <input type="submit" disabled="disabled"/>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the arquillian-issues
mailing list