Trying to see what methods are available on my main object when using the selenium library. I can see that they exist when I call the dir() function on my object but pycharm doesn't suggest these to me automatically. I followed the steps laid out in a similar question I'll link below but that didn't work. I'll post my code below and an example of what I mean.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
PATH = "C:\Program Files (x86)\chromedriver.exe"
driver = webdriver.Chrome(PATH)
driver.get("https://www.techwithtim.net")
search = driver.find_element_by_name("s")
search.send_keys("test")
search.send_keys(Keys.RETURN)
# Explict Wait
try:
main = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, "main"))
)
# Code I'd like to autocomplete.
articles = main.find
except:
driver.quit()
This post answer did not work: Why isn't PyCharm's autocomplete working for libraries I install?
Example shown in a video by TechWithTim: Example of the autocompletion I'm looking for
My Python Interpreter settings: My Python Interpreter settings