Sorry for my bad English. I would like to edit change some code in javascript file or change the javascript file to my localhost file using Selenium . I tried to press F12 and edit .js file in source then save it when i use Chrome browser and it worked. I wonder how to do it on Selenium web driver, i really need it for my work! Can you help me?
Asked
Active
Viewed 131 times
2
-
https://stackoverflow.com/questions/35922259/modify-innerhtml-using-selenium – Martheen Nov 15 '20 at 01:01
-
I tried but it doesn't work, I can't replace a js file with javascript :(( – Iroha Nov 15 '20 at 08:22
-
Are you looking to change javascript function behavior which is being loaded with the page ? – Sariq Shaikh Nov 15 '20 at 08:39
-
yes, that's exactly what i'm looking for. Sorry for replying after a long time. I've been in an accident and had to be in the hospital that time :( – Iroha Jun 15 '21 at 04:59
-
Not a duplicate – Phani Rithvij Dec 28 '21 at 08:26