0

I am trying to do some web scraping using python and selenium and I am struggling from the first lines of code. I am using Ubuntu 19.

The error I get:

raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: invalid argument: can't kill an exited process

Here is my code:

full_name=list()
driver = webdriver.Firefox()
driver.get(url)

full_name = driver.find_element_by_xpath('//div[@class="case-title"]/h3')

num_page_items = len(full_name)
for i in range(num_page_items):
    print(full_name[i].text)

Does anyone have an idea how I can resolve this?

ade
  • 9
  • 1
  • 4

0 Answers0