samedi 17 octobre 2020

How use a variable to add value to the innertext in Selenium java?

I am using the below code: content here is variable.

content = "Hello";
js.executeScript("document.all('rtf_text_800890007').innerText = '" + content + "'; return true; ");                                            

Aucun commentaire:

Enregistrer un commentaire