When I execute Javascript in Selenium with a python am I then interacting with the website? E.g. if I execute Javascript to go one page back can the website then see this? E.g.
driver.execute_script("window.history.go(-1)")
When I execute Javascript in Selenium with a python am I then interacting with the website? E.g. if I execute Javascript to go one page back can the website then see this? E.g.
driver.execute_script("window.history.go(-1)")
execute_script
executes the code in the browser:
execute_script(script, *args)
Synchronously Executes JavaScript in the current window/frame.
Whether the website sees it depends on what code you provide in script
. Some JavaScript will cause a request to be sent to the remote server and some won't.