Hi all.
My client is using Python implementation of Selenium, and would like to add a functionality that is missing in the Python implementation (but exists in the Java implementation)
My client would like to implement the functionality of CTRL+F5 in the running browser. That is, reload the existing page without cache.
Current Python Selenium can perform refresh action (F5) only, meaning a running browser will query the server for “if-modyfied-since” type of query (response code 304).
We’re after a complete reload.
If you have experience with Selenium, it is a great advantage !
This is a small project, but if our client is happy with the results, we can assume we will see more work from him.
Do’s and don’ts :
Please don’t implement this feature by sending keystroke sequence. It will not work if the running browser if not in focus, or for more than single running instance. We have tried it.
Try to implement in python just like to JAVA implementation ([login to view URL]().refresh())
Current implementation with “refresh”
[login to view URL]('http://testwebsite')- > server shows response code 200
[login to view URL]() – > server shows response code 304
Code MUST be highly documented. every line commented !
Acceptance criteria :
[login to view URL]('http://testwebsite')- > server shows response code 200
[login to view URL]() - > server shows response code 200
Example code performing the current implementation:
import os,time
from selenium import webdriver
from [login to view URL] import Keys
chromedriver = "\PATH_TO_CHROMEDRIVER\[login to view URL]"
[login to view URL]["[login to view URL]"] = chromedriver
driver = [login to view URL](chromedriver)
[login to view URL]('http://testwebsite')
[login to view URL](1)
[login to view URL]()
[login to view URL](1)
[login to view URL]()
references:
[login to view URL]
[login to view URL]
[login to view URL]
Good Luck,
Andrew
Hello,
A few questions:
- did you try to get currently open handles? Did that fail?
- the option would be to clear everything using individual methods - clear cookies/clear history/ cache.
- do you have a particular use case for this? Why is this needed? Is it the best solution?
Looking forward to your reply,
Arthur
$24 USD in 1 day
4.9 (57 reviews)
6.1
6.1
3 freelancers are bidding on average $62 USD for this job
I am expert in selenium webdriver and have worked extensively with it both in Java and Python. I analyzed your problem and looks like in python we need to change headers using command executer. This will be tough to do. A rather simpler solution would be to use javascript in selenium
Are you sure that it is not Chrome bug? Can you try it on firefox, looks it is a chrome bug.
Hi,
I have experience in working with selenium, mostly on Java. Also I have experience working on Python.
I will extend the driver classes to add this functionality. Do you want to have this functionality for chrome only or for other browsers too?
Please note 30 USD is too low for this task. I have bid for about 100 USD but we can negotiate on this.
My work timings are between 10 PM IST to 3 AM IST. Feel free to message me for further discussion on this.
Regards,
viraniac