Python Forum
[PyCharm] Any Features To Make Programming Easier / Faster?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyCharm] Any Features To Make Programming Easier / Faster?
#1
Say I have a script that does the following:

  1. Navigates to a website in Selenium
  2. Logs in
  3. Clicks category
  4. 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?
Reply


Messages In This Thread
[PyCharm] Any Features To Make Programming Easier / Faster? - by digitalmatic7 - Jan-19-2018, 05:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How can i make this code to run faster Prince_Bhatia 2 2,563 Dec-20-2018, 12:54 AM
Last Post: stullis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020