I have managed to select text in Selenium by executing javascript code using driver.execute_script("window.getSelection()"). However, when I select mathematical equati