Friday, 1 January 2016

PYTHON in eclipse



How to install PYTHON in eclipse

Step 1: Go to help -> Install New Software


                    


Step 2: click on Add



Step 3: Type give name & loc((Name=PyDev and PyDev Extensions & loc: http://pydev.org/updates) & click ok
                 


Step 4: click on marked one & click finish


                


Step 5: click select marked one & click finish

            


Step 6: click on radio button & click finish


           
NOTE: It will take time to install & restart your system:
Step 7: check python is installed or not-à go to eclipse à window & click preferences
               



Step 8: click on interpreters





Step 9: click on NEW



STEP 10:  Type Python Name & Python installed Location in your system& click ok




Step 11: click on Apply & click ok



Step 11: Go to window à Open perspective & click PYdev -> click ok



Step 12: create new python project à click on File (eclipse)



Step 13: Enter Project Name & click marked radio button & click Finish



Step 14: Right click on SRC -> NEW -> PyDev Package




Step 15: Right click on package -> NEW  ->PyDev Module





Step 16: ENTER module Name ->click on Finish




Step 17: After click on Finish & popup appear click empty & ok




       How to register python to selenium
Step 1: open command prompt
Step 2: GO to python folder where it is installed in system [up to scripts you have to copy path)
Step 3: Mine is [C:\Users\DeskUser\AppData\Local\Programs\Python\Python35\Scripts]
Step 4: Navigate location to python folder in command prompt
Type below command
[easy_install selenium] --> enter


Step 18: Write simple program




Step 19 : Place cursor on end of webdriver [ press= ctrl +space]




Step 18: Import will be display &run program




1 comment: