Jan-19-2018, 05:02 AM
Say I have a script that does the following:
It takes 20-30 seconds for this script to complete.
There's still many more actions I need to code in and testing becomes a chore because every time I want to test a new section of code the whole thing has to repeat. This burns 20-30 seconds every time and gets worse as the script gets longer.
Is it possible to get PyCharm to only load a new section of code into the already open selenium browser?
For example, I just want to test if this one line works, but I don't want to have to replay the entire script:
- Navigates to a website in Selenium
- Logs in
- Clicks category
- Navigates to post an entry
It takes 20-30 seconds for this script to complete.
There's still many more actions I need to code in and testing becomes a chore because every time I want to test a new section of code the whole thing has to repeat. This burns 20-30 seconds every time and gets worse as the script gets longer.
Is it possible to get PyCharm to only load a new section of code into the already open selenium browser?
For example, I just want to test if this one line works, but I don't want to have to replay the entire script:
driver.find_element_by_xpath("//div[@class='new_element']").click()Any way to do that?