I am attempting to write a set of commands into a textarea on a form page. Several of the commands include the "/" character. When I use send_keys to write the strings, they write fine until I reach the "/" then the cursor moves to the upper left of the textarea and continues writing which of course jumbles up the text I am writing. I've tried using the "\" and "{}" and r'/' and u'/' and so far nothing has stopped the behavior. I can find no reference that the character ought to do that nor any suggestions for stopping it.
I created a mochup of the page I want to write on and I still see the issue.
The selenium code is briefly:
baseurl = u"http://myhiddendomain.com/"
self.driver.get("https://futureoftesting.us/os.html")
self.driver.find_element_by_id('firstname').send_keys(baseurl)
self.driver.find_element_by_id('textarea').clear()
url = u''
#url = "{}//{}".format(baseurl,firmwarename)
self.driver.find_element_by_id('textarea').send_keys(
u'\nvar device = this\n\nvar url = "'+baseurl+firmwarename+'"\n\nvar conv = TR69.createConnection(device)\n\ntry {'+
u'var uuid = java.util.UUID.randomUUID().toString().replace("-","") \n'+
u'var dlRequest = new TR69.DownloadRequest() \n')
The output is: (notice the last line ought to be complete and the second line)
SG9C130016_prod-sagemcom-5260-8a.27.103-combined-squashfs.img.gsdf"
var conv = TR69.createConnection(device)
try {var uuid = java.util.UUID.randomUUID().toString().replace("-","")
var dlRequest = new TR69.DownloadRequest()
/myhiddendomain.com
var device = this
var url = "http: