JavaScript | Mocha: Selenium Page Object Model Tutorial

preview_player
Показать описание
In this video we will go over how to create a Selenium Page Object Model framework using JavaScript and Mocha.

Link to GitHub Repo:
Рекомендации по теме
Комментарии
Автор

Simple and straight !!! Everything in the right order...!!! This helped me lot

chathunm
Автор

now this is called a masterpiece in tutorial
short simple easy to understand.

edward
Автор

Still saving at the end of 2022! Great video! I was having difficulty with multiple instances being open at the same time. My problem was with the constructor of the BasePage class (actually I called it DriverFactory class). But I managed to fix it with the help of this video. Thanks from Brazil!

gustavosiqueira
Автор

Thank you for the video, just what I was looking for

diegoeliannava
Автор

Thank you for a great tutorial! Helped me a lot to set up my first POM project.

ro_sharp
Автор

thanks man! saved me hours of googling

NPT
Автор

Nice Back ground music . its very pleasent

Kumarkumar-gfkk
Автор

It's amazing! Why are you finished creating videos? You have a talent for this
Ты реально крутой мужик))

yaroslavbuiukli
Автор

Love to see how to take snapshot on failure for web driver JS

cshah
Автор

Hello, i have a question how can i used driver.close or driver.quit here?, The script open the browser but i can't see any action because it closed almost immediately. I want to see the action on the screen and for all the steps to be executed and at the end close the browser. I place the driver.close method in the base class. Appreciate your help, Ty!!!

enmanuelamaurydeleonguzman
Автор

Great video! very simple to follow. One question however. My chrome opens and closes too quickly for me to see the test actually happen. Any idea why? P.s, I have version "chromedriver": "^91.0.1"

noork
Автор

Hello Im really new to Mocha and selenium and thank you for this video. I'm wondering about the driver.findElement line, why did you put [name=q] for the google search box? How does it know that it refers to the search box? I'm not understanding how find element works. Thank you once again!

xinyichua
Автор

Got some problems with making another test case as it's error is: NoSuchSessionError: This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used.

With me using:
await driver.quit();
driver == null;
after each test.

willtom
Автор

Hey man, this is an old video hopefully you can help me out. I am running the same scripts and the test are passing but its not typing anything,

manulourdes
Автор

hello, where are you running the project from? I wish you showed it too. I have done everything in the video but it is not run.

hakan.tektas
Автор

mine say all papss but it does not search anything on the search box.

joseomv
Автор

My code is run successfully but i can't see the browser. Please suggest me how can i see the browser?

MoniraAzad
Автор

Why all of you are only telling to run the code from terminal? Please tell me how to run all test cases from html page with a click of a button. We use this testing for automation also. if we develop any automation and give it to users, then they can use this by a click of a button from html page. How they can run the test cases from terminal?

aimlgenai
Автор

Does not work for me. I get error: ChromeDriver could not be found on the current PATH. Please download the latest version. I have the latest version and the path is set correctly according to Chromedriver documentation at C:\bin, which is where the Chromedriver.exe is copied to.

MelEllington