Skip to content

WebDialog.get_element_value

Thomas Thomassen edited this page Jun 2, 2013 · 3 revisions

Under OSX (10.8) WebDialog.get_element_value doesn't work for <TEXTAREA> and <SELECT> elements. It does however work under Windows for these elements.

It is unclear if this used to work under earlier OSX versions. This needs to be verified.

To work around this one can call a javascript function that fetches the value, such as jQuery $(selector).value() and put that in a hidden <INPUT> element and then use WebDialog.get_element_value to get the value of that <INPUT> element. This acts as a bridging function that is cross platform compatible.