Hello, Sometimes you have to wait for the page to load and the await does not allow you to wait. I even tried to do a function wait in the if(...isDisplayed) but it doesn't work. Any idea?
@eduardmazur2 жыл бұрын
you should use driver.wait in this case
@koyenadutta57472 жыл бұрын
let err = new ctor(data.message) ,i am getting this error
@ganeshponmalar..3168 Жыл бұрын
Iam also getting same error Did you solve this error?
@barathkumar8732 жыл бұрын
Thank u so much . I m trying to do logout . But I am not able to achieve it . I am able to achieve upto my account drop down . Could u please help me
@MarikoShiden2 жыл бұрын
Hi! I need to set a pause before >> console.log(await driver.getTitle());
@yuyusan1002 жыл бұрын
Adding await new Promise((resolve) => setTimeout(resolve, 5000)); before >> console.log(await driver.getTitle()); will work
@eduardmazur2 жыл бұрын
Eduard Mazur 1 секунду назад you should use driver.wait in this case or driver.sleep but the seconв one worst idea))
@lider10rcfu942 жыл бұрын
Hello! What is your OC ?
@steamcode44412 жыл бұрын
Hi, what do you mean by OC?
@vashisthashingarwade-wq4ii7 ай бұрын
Black screen is very difficult to watch
@MuhammadWaseem-rg2bx2 жыл бұрын
bro share source code and by the way nice videos i learnt a lot from you thnks
@steamcode44412 жыл бұрын
Thank you, I'm glad my videos have been helpful! Yes, I will be posting the source code on Github.
@DiegoJFCampos Жыл бұрын
Try{}Ctach{}Finally{} block to handle with with it and also per example let title = await driver.getTitle() after if(title){} never use it without handle with expections and rewritte so many repetitive codes! however thank you very much for the tutorial
@rotibakarsusu3214 Жыл бұрын
Hello, did you know the solution for my error, i was successfully run my test case like yours but i get respond like this : new error.NoSuchSessionError( ^ NoSuchSessionError: This driver instance does not have a valid session ID (did you call WebDriver.quit()?) and may no longer be used. at /Users/RSN0069/Folder Baru/node_modules/selenium-webdriver/lib/webdriver.js:776:9 at Object.thenFinally [as finally] (/Users/RSN0069/Folder Baru/node_modules/selenium-webdriver/lib/promise.js:101:12) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { remoteStacktrace: '' } Node.js v20.3.1 If you dont mind, please help me 🙏🏻