On Thu, Jan 17, 2013 at 6:27 PM, Alex Rodionov <[email protected]>wrote:
> Thanks for clearing this out. I didn't know about attribute vs. property. > Do you think we should handle "value" for textareas/text_fields as a > separate case? Like, remove "value" from selector, getting all elements > matching the left part of selector and then iterate through the results and > check attribute(:value). > That would slow things down quite badly, especially for larger forms. Are you sure this is the cause of the problem? It looks like `#text_field` won't even try `//textarea[@value='...']` atm, but translates it to `//textarea[text()='...']`. And the original issue is using regexps, where we already are forced to pull out :value and do the iteration + attribute() check. > P.S. Yeah, I know, I just wanted to use Selenium to make sure. > Yes, you could do that and just use the WebDriver API: `Selenium::WebDriver::Element#attribute(name)`. No need to dig through the internals. --- Reply to this email directly or view it on GitHub: https://github.com/watir/watir-webdriver/issues/163#issuecomment-12381801
_______________________________________________ Wtr-development mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-development
