Importing pyautogui - need real help please!!!
Has anyone get any luck importing pyautogui into TestComplete?
This error pops up when I do "import pyautogui" in my script.
Where do I go about to check TestComplete's system path [or somehing like that] so that TestComplete IDE can recognize this library pyautogui??
Or
Where should I put a "pyautogui" (which I get from a different PC drive) to make it visible to TestComplete python interpreter? Currently I have uninstalled all python programs I previously had so that Test complete wont get confused, but it still gives me this error when ever it get to the line import pyautogui
?
To make things more misterious, I put the pyautogui folder into the Lib folder of my TestComplete 14 folder (please see the last 2 screenshots) I ran python.exe on CMD and then ran import pyautogui, something works, looks like pyautogui only get recognized here, but it is useless to me. I need it works in TestComplete IDE
What are my options? Please help. Thank you for your time!
Hi,
Check if these links help:
P.S. Out of curiosity, considering its name, what does pyautogui contain that you definitely need for TestComplete?
pretty much use the same code as the screenshot below but replace the path with your own absolute path to the directory where you have your external python modules that you downloaded with pip. On PC's they are usually in the appdata\local\programs\python\pythonx.x\Lib\site-packages.
And you want to keep this system path at the top at a global level outside of your function defenitions in your script/TestComplete IDE.