Denis Sheremetov wrote:
Hi. How I can store value from
document.getElementById('result').innerHTML into variable?
Hmm. Right now, you can't, without writing your own command, as a
user-extension. It should be fairly easy, though ... something like:
Selenium.prototype.doStoreInnerHtml = function(target, varName) {
var element = this.page().findElement(target);
storedVars[varName] = element.innerHTML;
};
| storeInnerHtml | result | resultHtml |
(WARNING: completely untested)
--
cheers, MikeW http://www.dogbiscuit.org/mdub/
_______________________________________________
Selenium-users mailing list
Selenium-users@lists.public.thoughtworks.org
http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users