[Python] How do I use selenium to test a website navigation using VSC?

Discussão em 'Python' iniciado por Stack, Novembro 28, 2024.

  1. Stack

    Stack Membro Participativo

    I want to learn to use selenium using python, I created a website hosted on Xampp, but I want to test the navigation using selenium, I don't know how to get started. I have created a workspace in VSC, added the Xampp folder with the website. I downloaded a chromedriver as well and added it to the path on system variables. but when I tried to use pip install selenium on VSC terminal this is what I got.

    PS C:\Users\Joseph\Desktop\xampp> pip install selenium
    Fatal error in launcher: Unable to create process using '"C:\Program Files\Python313\python.exe" "C:\Program Files\Python313\Scripts\pip.exe" install selenium': The system cannot find the file specified.

    PS C:\Users\Joseph\Desktop\xampp>


    I tried to use pip install selenium on VSC terminal this is what I got.

    PS C:\Users\Joseph\Desktop\xampp> pip install selenium
    Fatal error in launcher: Unable to create process using '"C:\Program Files\Python313\python.exe" "C:\Program Files\Python313\Scripts\pip.exe" install selenium': The system cannot find the file specified.

    PS C:\Users\Joseph\Desktop\xampp>

    Continue reading...

Compartilhe esta Página