Troubles with Python imports

2021-02-09 Thread Philipp Daher via Python-list
Hello, I’ve just typed „pip install selenium“ into my command prompt on windows 10. Although my computer told me that the requirement was already satisfied, import selenium did not work. So I tried different methods to install it and typed „Python“ in my command prompt and imported selenium. It

Python cannot count apparently

2021-02-07 Thread Philipp Daher via Python-list
Hello, I recently coded this snippet of code: myString=„hello“ for i in range(len(myString): print(string[i]) And now for the weird part: SOMETIMES, the output is this: hello And SOMETIMES, the output changes to: ohell WHY??? Why do I get different outputs with the EXACT SAME CODE? Can

Selenium finds object that is interactible but says otherwise

2021-02-06 Thread Philipp Daher via Python-list
Hello, I recently programmed some code for a webdriver with selenium. I asked the program to find an input tag, which is interactible, with this:     searchbar=driver.find_element_by_class_name("ut-player-search-control--input-container") then i ask it to send keys, which has worked before too.

Pyautogui troubles

2021-01-31 Thread Philipp Daher via Python-list
Dear Python-Team, I have just repaired python after running my program which imports pyautogui, closing and reopening it and then getting this: ModuleNotFoundError: No module named „pyautogui“. Repairing didn’t work and I still get that message. All I did was closing the perfectly working progr