I am new to robot framework,
and want simulate control the jQuery component via executing jQuery
However, the Selenium2Library almost drives me crazy.
try to get value of the DOM component but the log shows NONE.
The following is my test code.
Thanks in advance.
click configuration
[Tags] xpath
Open Browser http://${host} ie
Log "123"
# Print Poc "haha"
# get_image ${host} S:/image/image/a.jpg
${slide val}= Execute JavaScript window.jQuery("#gain_slider_handle").val();
${title}= Execute JavaScript window.$("head title")[0];
# ${code}= '$("head title")[0];'
${t2}= Execute JavaScript window.eval('window.document.title')
# Execute JavaScript alert("hihi")
Sleep 1s
# Execute JavaScript window.jQuery(alert(window.jQuery("#gain_slider_handle").val();));
# Execute JavaScript window.jQuery("#gain_slider_handle").val('10');
# Execute JavaScript window.jQuery("#gain_slider_handle").slider('refresh');
# Execute JavaScript window.jQuery("#exposureProfile").click()
Log ${slide val}
Log ${title}
# Get Value From User ${slide val}
# Sleep 2s