driver.get(link)
time.sleep(2)
lol = driver.find_element_by_xpath("//*[@id='table_div']/div/div[1]/table/tbody/tr[2]/td[10]/div/div")
hover = ActionChains(driver).move_to_element(lol)
hover.perform()
Here is the code I have so far. I am trying to get some text that only shows when I hover over a certain element. I found the element with selenium, and am hovering over it, but I can't figure out how to actually get the data. It looks like the data is not there when I inspect element, and I can only see it in the javascript when I view the page source. It's just a variable, so how do I get that variable value from the javascript?
javascript:
function apply_pop(){
jq(".pop_up").mouseenter(function(p_event){
p_value = jq(this).attr("value")
//creating dynamic lists from python static storage
var data_list = ['0', '2015-07-13 17:29:15'];
var desp_list = [['RUNNING 1000.0 None', 'INVALID None None', 'INVALID None None', 'PASSED 0.05 2015-07-10 17:21:54', 'FAILED 0.05 2015-07-08 12:35:55', 'FAILED 0.05 2015-07-08 09:54:48', 'FAILED 0.05 2015-07-07 18:21:17', 'FAILED 0.05 2015-07-07 17:07:50', 'FAILED 0.05 2015-05-28 18:33:41'], ['FAILED 0.05 2015-07-13 16:33:38', 'FAILED 0.05 2015-07-10 15:36:30', 'FAILED 0.05 2015-07-09 19:39:46', 'FAILED 0.05 2015-07-09 11:00:45', 'FAILED 0.05 2015-07-09 01:05:13', 'INVALID None None', 'INVALID None None', 'FAILED 0.05 2015-06-19 22:42:21']]
...};
I want the first thing in the desp_list (RUNNING 1000.0 None)