Closed fatihesergg closed 3 years ago
This is microsoft/python-type-stubs#201 or microsoft/pylance-release#1695; the selenium stubs we ship (https://github.com/python/typeshed/tree/master/stubs/selenium) are not very complete, and seemingly worse than analyzing the library itself.
Closing - duplicate
I have problem with pylance.Im new on vscode and programming but im sure its working weird.When i type driver.se and [ctrl+space] "send_keys" not in suggestion tab.If i tpye driver.send_ke [ctrl+space] then i have no suggestion.Already tried uninstalling and installing on fedora 34& windows 10.But i have nothing.Thanks Advance
Expected behaviour
https://imgur.com/a/l0URt6k
Actual behaviour
https://i.imgur.com/4PdCKUn.png
Logs
Code Snippet / Additional information
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.firefox.options import Options import time
firefox_opts = Options() firefox_opts.add_argument('--headless') driver = webdriver.Firefox(options=firefox_opts) driver.get('https://www.instagram.com')
driver.send_key
time.sleep(3) username = driver.find_element_by_xpath("//input[@name=\'username\']")
username.clear() username.send_keys('') username.send_keys(Keys.RETURN)
password = driver.find_element_by_xpath("//input[@name=\'password\']")
password.clear() password.send_keys('') password.send_keys(Keys.RETURN)
giris_yap = driver.find_element_by_xpath('//button[@type=\'submit\']')
time.sleep(3)
dm = driver.get('https://www.instagram.com/direct/inbox/')
not_now = driver.find_element_by_xpath('//button[@class=\'aOOlW HoLwm \']').click()
time.sleep(2)
kelco = driver.find_element_by_partial_link_text('').click()
time.sleep(2) while True: msg = driver.find_element_by_xpath('//textarea') msg.send_keys('Herbir saate çalışır.') time.sleep(1) msg.send_keys(Keys.RETURN) time.sleep(3600)