ctrl+shift+r is a browser level short cut you cannot trigger that from selenium.
If you want to refresh by forcing the pages to be loaded from server and not cache use the devtool protocal:
First install Selenium 4 :
pip install selenium==4.0.0.a7
Selenium 4 supports devtool protocol now use below code:
driver.get(
"https://stackoverflow.com/questions/66190723/python-selenium-send-keys-to-driver")
driver.execute_cdp_cmd("Page.reload", {"ignoreCache": True})
https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-reload
Page.reload # Reloads given page optionally ignoring the cache.
PARAMETERS ignoreCache boolean If true, browser cache is ignored (as
if the user pressed Shift+refresh). scriptToEvaluateOnLoad string If
set, the script will be injected into all frames of the inspected page
after reload. Argument will be ignored if reloading dataURL origin.
Updated on the Comment
location.reload(boolean) is deprecated now and also:
location.reload() as per the comment may not validate all the cached resources:
https://www.chromestatus.com/feature/5724282256621568
refreshthe chrome from the Chrome driver. You have mentioned a variable likedriverorbrowser. So go there and typedriver.refresh()orbrowser.refresh()or the variable you have mentioned. The second method is by importing the modulekeyboard. Go to thecmdand typepip install keyboardor by importingpuautoguiand you can install it like thispip install pyautogui. After that import it on the code you have wrote.pyautoguiyou can add this codepyautogui.hotkey('ctrl', 'shift', 'r')and it will make your combination