Protractor Beginner Tutorial 6 | Creating Protractor Framework on Visual Studio Code from scratch

  Рет қаралды 57,204

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер: 251
@ravi14feb
@ravi14feb 3 жыл бұрын
This guy is a genius. Great effort and very Neat and clean.
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Ravi
@devattri8062
@devattri8062 8 ай бұрын
Thankyou bhai. Mahadev bless you with lots of happiness.
@RaghavPal
@RaghavPal 8 ай бұрын
Thanks a lot Dev.. humbled
@antonmnykh8714
@antonmnykh8714 4 жыл бұрын
Thanks Raghav for great job and cool content! Your classes are very useful.
@RaghavPal
@RaghavPal 4 жыл бұрын
Glad you like them Антон
@manasatweets3994
@manasatweets3994 2 жыл бұрын
THank you so much sir for the videos,u r really doing a great job ,nice explanation from the starting for beginners
@RaghavPal
@RaghavPal 2 жыл бұрын
Most welcome Manasa
@manasatweets3994
@manasatweets3994 2 жыл бұрын
@@RaghavPal joined new project in New company and going through ur video's to learn protractor
@kalyansai5443
@kalyansai5443 3 жыл бұрын
Amazing explanation bro.. You explanation is crystal clear for a beginner. Started learning Protractor with your videos
@RaghavPal
@RaghavPal 3 жыл бұрын
Glad to hear that Kalyan
@kalyansai5443
@kalyansai5443 3 жыл бұрын
@@RaghavPal Raghav, I started using ngwebdriver to locate ngelements and Im not sure how we can handle ngwebtables. Can you help me on this please
@RaghavPal
@RaghavPal 3 жыл бұрын
I will check and plan a session on this Kalyan
@abhijitkambli2932
@abhijitkambli2932 4 жыл бұрын
Hi Raghav thxs for video. Keep doing good work. We all appreciate your efforts to explain each topic
@RaghavPal
@RaghavPal 4 жыл бұрын
Thanks a ton Abhijit
@tejkumarkempaiah4906
@tejkumarkempaiah4906 3 жыл бұрын
Thanks Raghav, ​ DB Testing (MySQL) using Protractor would be a helpful playlist as there are no much information available in the web.
@RaghavPal
@RaghavPal 3 жыл бұрын
I will check on this Tej
@RahulSharma-di4uh
@RahulSharma-di4uh 5 жыл бұрын
Thanks Raghav for sharing the knowledge. Very very detailed and useful session. Eagerly waiting for the remaining video to create full fledged framework.
@RaghavPal
@RaghavPal 5 жыл бұрын
Sure Rahul, I will do
@leelamadhavi9277
@leelamadhavi9277 4 жыл бұрын
Thank you so much Sir..Its very helpful..In between i faced unauthorized access while trying to run the commands in terminal,resolved it by changing the execution policy and by deleting the protractor.ps1 file and by clearing the cache ,and resolved '0' specs found issue while running the conf.js by giving the correct path of spec.js by following ur comments...happy to learn from your tutorials..small suggestion is to address the most common issues while configuration and access issues so that it will reduce our time and effort to stuck in that...but overall its so awesome..
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Leela, thanks for the feedback and for adding this useful information
@quangvo361
@quangvo361 5 жыл бұрын
Thank you for sharing the video. The details made it easy to learn. Great work.
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Quang
@sagarikav3989
@sagarikav3989 3 жыл бұрын
Thank you Your vedios are of great help :)
@RaghavPal
@RaghavPal 3 жыл бұрын
You are welcome Sagarika
@rangabharath4253
@rangabharath4253 5 жыл бұрын
Awesome as always. Very detailed explanation. Thank u so much
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Ranga
@parthoroy2430
@parthoroy2430 5 жыл бұрын
Great Contribution Raghav. appreciate the passion
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Partho
@johnny589567
@johnny589567 4 жыл бұрын
Thank you for the content, Raghav!
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome Lonathan
@tharshiy
@tharshiy 4 жыл бұрын
Thank you sir for this wonderful video. It is very easy to follow :)
@RaghavPal
@RaghavPal 3 жыл бұрын
You are most welcome
@bharatmalik4780
@bharatmalik4780 4 жыл бұрын
Hi Raghav, Thank you very much for creating these videos on Protractor. My question is that before moving on to the next video, do you recommend watching JavaScript videos. My background is automation tester but i don't experience with JS from development perspective. Do we really need to learn in order to master protractor. Thank you for all your support in this matter.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Bharat, I will suggest that you complete Protractor and then go for JavaScript and then try some more advanced things in Protractor. I have created the Protractor series so that you can complete it without good knowledge on JS
@lnmahapatra7530
@lnmahapatra7530 2 жыл бұрын
I have run few commands in powershell and it is working fine
@RaghavPal
@RaghavPal 2 жыл бұрын
Great to know
@hangochung8730
@hangochung8730 4 жыл бұрын
Thank you very much, I appreciate this a lot.
@RaghavPal
@RaghavPal 4 жыл бұрын
You're very welcome!
@Mani-oq2bj
@Mani-oq2bj 5 жыл бұрын
Thanks Raghav ji,👏👏 We expecting more videos on protractor...
@RaghavPal
@RaghavPal 5 жыл бұрын
Sure Manoj, keep watching
@ogg_gang
@ogg_gang 4 жыл бұрын
thanks a lot, your courses are helpful
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome
@akshayjadhav6922
@akshayjadhav6922 5 жыл бұрын
Thank you sir fir this amazing tutorial.
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks Akshay
@sudeepbasak5870
@sudeepbasak5870 5 жыл бұрын
Thank you for your great jobs...
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Sudeep
@shiskeyoffles
@shiskeyoffles 5 жыл бұрын
Just to point out to viewers, VSCode is an editor, while Visual Studio (huge) is an IDE... But VSCode has enough extensions which allows coders have most features of a fully fledged IDE.
@RaghavPal
@RaghavPal 5 жыл бұрын
Thanks for adding.
@sahasra8173
@sahasra8173 4 жыл бұрын
Very nice tutorial Raghav. I started exploring Protractor and really liked your tutorial. Small videos very constructive and informative to the point. Keep up the good work buddy. Coming to this video, I encountered an issue in VSCode. When I try to execute protractor --version command it says protractor is not known command. Could be some setting related issue. Any suggestion on how to fix it?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Subrahmanyam, happy to know it is helping you. How did you install protractor, did you use -g flag. Also check if you have set environment variables for node js.
@mihirkumardash5035
@mihirkumardash5035 4 жыл бұрын
Thanks for making very detailed videos. It helps a lot. Could you please also make some videos on Selenium with C#?
@RaghavPal
@RaghavPal 4 жыл бұрын
I will definitely do it Mihir
@testingtrail
@testingtrail 5 жыл бұрын
This is great, thanks!
@RaghavPal
@RaghavPal 5 жыл бұрын
You'r welcome Jorge
@MrBato1985
@MrBato1985 5 жыл бұрын
Thank you Raghav
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Aqil
@pratibhakamdi4718
@pratibhakamdi4718 3 жыл бұрын
Thanks Raghav for such detailed explanation. Can we create protractor framework in eclipse as well or VS is mandatory to use?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Pratibha, you can do with Eclipse
@lalitwaful
@lalitwaful 4 жыл бұрын
Hi Raghav, I am using protractor version as 5.4.3 , and on running protractor conf.js I am getting error that " session not created: This version of ChromeDriver only supports Chrome version 81" my current chrome driver version after doing webdriver-manager update is chromedriver_81.0.4044.69 , can you please help to fix this issue
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Lalit, see what is the ver of Chrome browser installed on your system. Download the corresponding chrome driver exe.
@Gaganchangappa
@Gaganchangappa 4 жыл бұрын
try sudo webdriver-manager update --versions.chrome=80.0.3987.163
@peytonliang1600
@peytonliang1600 4 жыл бұрын
Hi, I couldn't find the support for TypeScript in Welcome screen and there are many different TypeScript if search in extension. Which one should I install?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Peyton, I saw the link for TypeScript on the welcome screen. But anyways, check this - code.visualstudio.com/docs/languages/typescript
@shaikmumtaz2754
@shaikmumtaz2754 4 жыл бұрын
Hi Raghav total how many tutorials are there to complete protractor
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Shaik, can check here - automationstepbystep.com/
@Arun-hg2uh
@Arun-hg2uh 5 жыл бұрын
@Raghav I am expecting that you will come up with the same series using Type Script
@RaghavPal
@RaghavPal 5 жыл бұрын
I will Arun, in some time
@gopikrishnakilari23
@gopikrishnakilari23 5 жыл бұрын
Thanks for the video Raghav. When can we expect the next video on protractor?
@RaghavPal
@RaghavPal 5 жыл бұрын
You're welcome Gopi. Next video coming Monday morning.
@tripathi5174
@tripathi5174 3 жыл бұрын
raghav sir you asked us to run this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass if we were unable to run the script on VS code, can you please explain what is it doing . thankyou sir.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi, with this we can bypass execution policies that may hinder our execution process. I will need to check online for deeper analysis
@meghnabakshi7648
@meghnabakshi7648 4 жыл бұрын
Hi Raghav, I have downloaded the project from git and try to run but getting below error- protractor : The term 'protractor' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + protractor --version + ~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (protractor:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException. Could you please help here
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Meghna, install protractor globally using -g argument. e.g. npm install protractor -g
@Trading4Life
@Trading4Life 3 жыл бұрын
Volume is low Raghav in many of the videos. Please do something about it.
@RaghavPal
@RaghavPal 3 жыл бұрын
I will check, may not be able to change the existing videos, but will take care for future ones, For these pls try headphones will full volume
@vikramerlapalle2608
@vikramerlapalle2608 3 жыл бұрын
Hi Raghav I am not able to run protractor --version command on visual studio but its successfully running on win cmd, getting error 'protractor : The term 'protractor' is not recognized as the name of a cmdlet, function, script file, or operable program.'
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Vikram install protractor globally using -g argument. e.g. npm install protractor -g
@prashantteotia7296
@prashantteotia7296 2 жыл бұрын
Hello Raghav I am facing problem while running the test it ends with the code - no specs found and the web driver exits as I have configured the conf file also tried giving out double .. to the relative path Also re tried everything from the beginning in starting the test was running smoothly please help.
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Prashant, pls check if this helps - stackoverflow.com/questions/30616093/angular-protractor-no-specs-found stackoverflow.com/questions/46500133/angular-protractor-how-to-ensure-that-no-specs-found-error-does-not-happen/46515759#46515759
@ishmeetkaur1049
@ishmeetkaur1049 3 жыл бұрын
Hi, I am not getting "typescript" language in tools and language while launching Visual studio.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Ishmeet, check this code.visualstudio.com/docs/typescript/typescript-tutorial
@peytonliang1600
@peytonliang1600 4 жыл бұрын
Hi, Sir. I keep getting the same error: Program 'protractor' failed to run: No application is associated with the specified file for this operationAt line:1 char:1 + protractor --version + ~~~~~~~~~~~~~~~~~~~~. At line:1 char:1 + protractor --version + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException + FullyQualifiedErrorId : NativeCommandFailed For your information, i have added the nodejs and also npm variable in path, the environment variable. I can get the protractor version when i run in cmd but not in vs code. I tried to update to latest npm as well. All not working and i still facing the same issue. Can you please assist? Thank you.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Peyton, did you install protractor with -g option and if the env variables
@shilpapai5171
@shilpapai5171 4 жыл бұрын
Hi Raghav, Thanks for such an amazing video. I am getting "no specs found" error. How can I solve this? Can you please suggest?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Shilpa, pls check if this helps - stackoverflow.com/questions/30616093/angular-protractor-no-specs-found stackoverflow.com/questions/46500133/angular-protractor-how-to-ensure-that-no-specs-found-error-does-not-happen/46515759#46515759
@minivlogsofisra5883
@minivlogsofisra5883 2 жыл бұрын
Dear sir thanks for your videos. Facing error in visual studio code which entering protractor --version it's showing error c:users\hp\appdata oaming pm\protractor.ps1 cannot be loaded because running script is disabled on the system. How to solve the issue
@RaghavPal
@RaghavPal 2 жыл бұрын
can try bypassing execution policy with this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass this will help stackoverflow.com/questions/41117421/ps1-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system
@vITchallenge
@vITchallenge 2 жыл бұрын
Hi. I have new version Visual Studio Code and I can't instal JavaScript and TypeScript from main page. There are no these buttons.
@RaghavPal
@RaghavPal 2 жыл бұрын
You can get them separately
@vITchallenge
@vITchallenge 2 жыл бұрын
@@RaghavPal Thank you. How?
@mounikasharma82
@mounikasharma82 3 жыл бұрын
I am getting below error while trying to run my program [20:55:30] I/launcher - Running 1 instances of WebDriver [20:55:30] I/local - Starting selenium standalone server... [20:55:30] E/launcher - spawn java ENOENT [20:55:30] E/launcher - Error: spawn java ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) at onErrorNT (internal/child_process.js:469:16) at processTicksAndRejections (internal/process/task_queues.js:84:21) [20:55:30] E/launcher - Process exited with error code 199 PS C:\ATHENA_Automation_1.0\OITC_Automation\e2e-tests> (this is the path where my program is present)
@RaghavPal
@RaghavPal 3 жыл бұрын
Not sure, will need to check online
@misteek663
@misteek663 4 жыл бұрын
hey raghav, thanks for the wonderful explanation. But I am getting O specs found when run the protractor .\conf\conf.js although i set the relative path as per ur explanation but it still shows the same result. :/
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Mishal, pls check in your conf.js if the path to spec file is correct, You can also try to give absolute path and check
@cluelessarmy3767
@cluelessarmy3767 4 жыл бұрын
Did you get the result? I am getting the same 0 specs found
@thangam9503
@thangam9503 4 жыл бұрын
Hi Raghav....I couldn't not find typescript to install under tools and languages....only JavaScript php python are there..
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Thangam, you can goto extensions section and install from there
@anshikagupta8844
@anshikagupta8844 4 жыл бұрын
which typescript we need to install from extensions? there are many like typescript toolbox, typescript react code snippets etc
@RaghavPal
@RaghavPal 4 жыл бұрын
Just look at the description and see if it says TypeScript support, can add it
@techkeyss
@techkeyss 5 жыл бұрын
Hi Raghav, Videos are really good. I am facing with one issue Protractor Scripts configuration in Jenkins for daily job and should send the report to email. I configured the protractor scripts in Jenkins and allure report also generated. My issue here is : 1.1st job is running and report is generated. 2. 2nd job is running and 1st report and 2nd report consolidated and generating due to 1st script is not archived. 3. Unable to send the allure report to the email. Do you have knowledge on this, can you able to help here
@RaghavPal
@RaghavPal 5 жыл бұрын
Not sure on this Kiran, will have to check
@techkeyss
@techkeyss 5 жыл бұрын
Automation Step by Step - Raghav Pal It’s ok Raghav, please let us know when you got any information on this concept
@emmaisongokon
@emmaisongokon 3 жыл бұрын
hello, I really enjoyed this class on protractors. however, when I got to the point I had to run the test on my terminal I got some error messages. it says " ps1 cannot be loaded because running scripts is disabled on this system" what does that mean?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Emmanuel, this error is due to current user having an undefined ExecutionPolicy. And this is resolved after executing the below command in TERMINAL: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
@emmaisongokon
@emmaisongokon 3 жыл бұрын
@@RaghavPal thanks, I'll try it out immediately and let you know the outcome
@emmaisongokon
@emmaisongokon 3 жыл бұрын
@@RaghavPal the error message I now get is: [09:35:59] E/launcher - Process exited with error code 1. Also, the browser launches alright but does not close at the end of the test
@RaghavPal
@RaghavPal 3 жыл бұрын
Emmanuel, Pls check if this helps - stackoverflow.com/questions/40541974/launching-protractor-fails-and-exited-with-error-code-199
@priyankaharkare2690
@priyankaharkare2690 2 жыл бұрын
Hello, Great video... I was wondering if you/someone here could help. I am ta 21:37 min and getting an error : `zsh: command not found: protractor` when i run the command: 'protractor --version'. I have installed it already, but not able to figure out why this night be happening
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Priyanka, pls check if your env variables are updated
@aspp8137
@aspp8137 4 жыл бұрын
HI Raghav, what i understood from this is we can run either through cmd prompt or visual code. Am i right
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes you can Archana
@aspp8137
@aspp8137 4 жыл бұрын
@@RaghavPal Thank you.
@dhanashreesaraf2092
@dhanashreesaraf2092 4 жыл бұрын
Thank you Sir for this well detailed tutorial. Though I always face one issue - when i run protractor conf.js , I get error as chrome crashed. process exited with error code 199. Can you please help me with this?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Dhanashree, pls check if this helps - stackoverflow.com/questions/40541974/launching-protractor-fails-and-exited-with-error-code-199
@arwaabdu1015
@arwaabdu1015 4 жыл бұрын
I have problem the protractor in VS in not recognized
@RaghavPal
@RaghavPal 4 жыл бұрын
Pls restart VS or add the required plugins again
@saikirans9838
@saikirans9838 4 жыл бұрын
hi Raghav i am getting this error can you please solve this for me ([19:37:22] E/launcher - Process exited with error code 1)
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Sai, Can you check by changing chromedriver ver. You can find some solutions here - github.com/angular/protractor/issues/4347
@chandanav1290
@chandanav1290 10 ай бұрын
Sir type Script not there to install is showing unstable, what to do
@RaghavPal
@RaghavPal 10 ай бұрын
Chandana Protractor has reached end of life. Please check if you like to continue with it - www.protractortest.org/#/project-status
@anumanthe7871
@anumanthe7871 5 жыл бұрын
Thanks much for the perfect and amazing tutorial, Raghav. But the terminal is very slow. I cannot able to view anything on that. Once I tried the protractor --version - Got the below error. Please help. "protractor: The term 'protractor' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1"
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Anumanth, looks like protractor is not installed globally, You can uninstall and Install protractor globally using command pip install -g protractor
@anumanthe7871
@anumanthe7871 5 жыл бұрын
@@RaghavPal Thanks Raghav. It Works
@krishanuchowdhury9698
@krishanuchowdhury9698 4 жыл бұрын
@@RaghavPal Hey Raghav, I executed the command npm install -g protractor in cmd. Shouldn't that install protractor globally ? My Visual Studio is still showing the above mentioned error. Should I uninstall protractor and use the command pip install -g protractor in cmd ? And webdriver-manager update command in cmd after that ? Thanks in advance .
@narendranravi6430
@narendranravi6430 4 жыл бұрын
Krishanu Chowdhury Same issue, it got resolved for you? Can you let me know what needs to be done. Thanks in advance
@mv8167
@mv8167 3 жыл бұрын
How to add JS and TypeScript in v19, or is it already?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Mike, VS Code has JS support in built, you can add more extensions for debugging, code running etc. For TypeScript you will just need to enable it from the main screen
@maheshpatil3656
@maheshpatil3656 3 жыл бұрын
Hi Raghav can u help to resolve the issue - I am getting error "the term protractor is not recognized'. Same conf.js I can run through command prompt successfully .Even protractor version command is not working in visual source code same error "protractor not recognized'
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Mahesh, what is the ide you are using, Also check protractor installation, reinstall if required
@maheshpatil3656
@maheshpatil3656 3 жыл бұрын
​@@RaghavPal​- Thanks Raghav for reply I am using Visual studio code, i ran conf.js example from command prompt that's working fine, but when I came to visual studio code and follows exact all the steps from this session and terminal run the command protractor conf.js , showing error protractor not recognized, then I tried protactor --version same error protractor not recognized. but in cmd prompt shows version correctly
@RaghavPal
@RaghavPal 3 жыл бұрын
may be your protractor is not installed globally on your system use npm install protractor -g OR npm i protractor -g
@AnjanPrasad
@AnjanPrasad 2 жыл бұрын
Can we use eclipse in place of vs code
@RaghavPal
@RaghavPal 2 жыл бұрын
Yes, there is a protractor plugin for eclipse, Can try Anjan
@mekalasuresh334
@mekalasuresh334 4 жыл бұрын
Hi sir, I am getting error while checking protractor version in visual code... The term protractor is not recognised... Pls help me
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Mekala, pls check if you have installed protractor globally using the -g argument npm install -g protractor
@swathiathuluri246
@swathiathuluri246 4 жыл бұрын
Hi Raghav,i am getting this error when trying to execute conf.js E/launcher - session not created: This version of ChromeDriver only supports Chrome version 85
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Swathi, Pls change your chrome driver as per the ver of Chrome browser on your system chromedriver.chromium.org/downloads
@mendietaaa
@mendietaaa 4 жыл бұрын
hi Raghav. Thank you for your tutorials. I have a question please. I installed successfully Code Runner but the section "OUTPUT" is always empty when I execute a test. For example, "hello world"
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi El, are you printing something on the console. Pls check again, May be a re-install might work
@mendietaaa
@mendietaaa 4 жыл бұрын
@@RaghavPal I write a simple test : console.log(hello the world) but nothing in the Output section. The message is written in the Terminal section only
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi El, not sure why is this the case. You may try re-installing
@sravanbhuma8214
@sravanbhuma8214 4 жыл бұрын
Hi El, It may be the case that you ran the script without saving the file. I encountered the same and later realized that I didn't save the file
@bishnupriyapatra9567
@bishnupriyapatra9567 3 жыл бұрын
Hii raghav, when I tried to to execute example.js getting error.
@bishnupriyapatra9567
@bishnupriyapatra9567 3 жыл бұрын
In terminal it's showing it cannot be. Loaded running scripts is disabled on this system. For more information, see about_Execution_policies
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Bishnupriya, can try bypassing execution policy with this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@bishnupriyapatra9567
@bishnupriyapatra9567 3 жыл бұрын
@@RaghavPal yerah done...runned successfully...THNX Raghav:-)
@meghnabakshi7648
@meghnabakshi7648 4 жыл бұрын
giving me this error- "cannot be loaded because running scripts is disabled on this system" while running on terminal.Please help!
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Meghna, can try bypassing execution policy with this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@ocsicnarf04
@ocsicnarf04 4 жыл бұрын
I can't run protractor in eclipse, tern plugin is outdated and I installed wild web driver plugin but can't find protractor/convert my project. can you give tutorial for eclipse?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Francis, I will check on this.
@shilpamittal2598
@shilpamittal2598 4 жыл бұрын
Hi Raghav, when I run the hello.js, it did not print the "hello world", terminal only print this : [Running] node "f:\ProtractorDemo\tests\hello.js" [Done] exited with code=0 in 0.121 seconds Also After hitting the command "protractor --version" I am getting the error : protractor : File C:\Users\Shilpa Mittal\AppData\Roaming pm\protractor.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Shilpa, can try bypassing execution policy with this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@shilpamittal2598
@shilpamittal2598 4 жыл бұрын
@@RaghavPal Thanks Raghav, It works for me.
@zishukumar6533
@zishukumar6533 4 жыл бұрын
I am getting Cannot find chrome binary error
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Zishu, if the chrome browser binary file is not present on the default location on your system, you may have to provide its location. Check this - stackoverflow.com/questions/55826772/e2e-test-fail-error-cannot-find-chrome-binary-in-linux
@aspp8137
@aspp8137 4 жыл бұрын
Hi Raghav, I am trying to run the website which is angular js and i have a code ng-click="sortType = 'lName'; sortReverse = !sortReverse" like this. I dont know how can i write the java script code for this to click on that link and also sort. Can you please suggest.I tried the below let sortLastName= element(by.css('[ng-click=sortType()]')); using link text also tried but not working. This is the website www.way2automation.com/angularjs-protractor/banking/#/manager/list where i will click on Customers tab and click on first name link
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Archana, Let me check, will need to take some online help
@pratyushtripathy1463
@pratyushtripathy1463 4 жыл бұрын
sir it showing runtime error exports is undefine
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Pratyush, just check if you are running the config file or spec file
@pratyushtripathy1463
@pratyushtripathy1463 4 жыл бұрын
@@RaghavPal config file sir
@RaghavPal
@RaghavPal 4 жыл бұрын
Will have to see the file. Meanwhile pls check online
@venkatgeneralknowledge5064
@venkatgeneralknowledge5064 4 жыл бұрын
every time we have to install java script or type script we have opened visual studio
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, I did not get your question, you will have to do that in Visual Studio
@Manibhatt20
@Manibhatt20 4 жыл бұрын
Hi Sir, Can i use Visual studio instead of Visual studio code?
@RaghavPal
@RaghavPal 4 жыл бұрын
Yes, you can as long as the support for JavaScript/TypeScript is available
@Manibhatt20
@Manibhatt20 4 жыл бұрын
@@RaghavPal Thanku so much for reply. i am facing issues related to the intellisense , i am not able to get it even after downloading the support for javascript.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Manisha, did you try to restart VS Code
@dearstomach
@dearstomach 4 жыл бұрын
While running the conf.js im getting a windows script host error: error is 'exports' is undefined, please help
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Bijineshh, can you check which line is throwing this. will need more logs to troubleshoot
@manjumanagutti135
@manjumanagutti135 3 жыл бұрын
It's saying running script is disabled on this system
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Manju, can try bypassing execution policy with this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass Also check this stackoverflow.com/questions/41117421/ps1-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system
@manjumanagutti135
@manjumanagutti135 3 жыл бұрын
@@RaghavPal k thank you so much....
@aspp8137
@aspp8137 4 жыл бұрын
do we need Visual code as well for protractor apart from this node.js
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Archana, you will need some editor or IDE, I found VS code very useful. Just in case you need to get started with VS Code, Check this - kzbin.info/aero/PLhW3qG5bs-L_uGhe43hrzPBgNdHh141r3
@aspp8137
@aspp8137 4 жыл бұрын
@@RaghavPal OK got it Thank you very much. I am practicisng some websites. Can you help in getting alert message code since if i go through website there is not javscript code for alert or pop up window. in that case how do we write the code to proceed further. Please suggest.
@vITchallenge
@vITchallenge 2 жыл бұрын
The term 'protractor' is not recognized as the name of a cmdlet
@RaghavPal
@RaghavPal 2 жыл бұрын
Pls check if protractor was added globally on your system
@vITchallenge
@vITchallenge 2 жыл бұрын
@@RaghavPal Thank you for answer. I checked PATH, everything as in video.
@RaghavPal
@RaghavPal 2 жыл бұрын
Can check the process again and try some online examples too
@kitttypie
@kitttypie 4 жыл бұрын
Can you please provide me link of notes
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, notes are added in the description below the video
@sr2603
@sr2603 4 жыл бұрын
Is protractor good for React UI?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi, I have personally not used protractor for React. I will suggest to explore on this online. Some pointers - www.quora.com/What-is-the-best-testing-framework-for-ReactJS
@Pigilili
@Pigilili 5 жыл бұрын
Hi, How did you resolve issue regarding: "session not created... Process exited with error code 199" from the previous video? Have u added another driver or u changed version of Chrome?
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Nemanja, pls check you are using directConnect in config.js. Also try to get a newer ver of chromedriver and try. Also check your /etc/hosts file, 127.0.0.1 rule should not be commented.
@Pigilili
@Pigilili 5 жыл бұрын
​@@RaghavPal Hi Raghav, Thanks for quick reply... Regarding newer version of chromedriver, triggering 'sudo webdriver-manager update' it automatically downloads newest webdriver, but the thing is that My Chrome version is 71 and I need older version of webdriver than the one I am getting over webdriver-manager. Is there any way that we can manually set which webdriver we want protractor to use? Thanks
@Pigilili
@Pigilili 5 жыл бұрын
Got it: So if someone can't or don't want to change his browser version, there is a way to adjust chromedriver version to it's browser version with following command: webdriver-manager update --versions.chrome=73.0.3683.86 So just specify exact version of ur browser (chrome://version) and it'll download the appropriate version of webdriver
@RaghavPal
@RaghavPal 5 жыл бұрын
Glad to see you resolved it and thanks a lot for posting the solution, It will help many
@Karthickraj.pattabi
@Karthickraj.pattabi 5 жыл бұрын
make chrome version for 77V
@wasimakram-nz5gq
@wasimakram-nz5gq 4 жыл бұрын
Hi sir I had follow everystep what you did in my pc. In Visual studio in terminal if i type protractor -version its showing error message like cannot be loaded because running scripts is disabled on this system. Like its showing help me to over come this error. Waiting for your replay sir
@RaghavPal
@RaghavPal 4 жыл бұрын
HI Wasim, looks like permission issue on your system. May be you can create project folder at a different location where you have all rights and try again.
@wasimakram-nz5gq
@wasimakram-nz5gq 4 жыл бұрын
Protractor : File C:\user\harsha\Appdata\Roaming pm\protractor.ps1 cannot be loaded because running scripts is dispabled on this system this is the error which i face during to check protractor version in Terminal.
@RaghavPal
@RaghavPal 4 жыл бұрын
Okay, not sure, may be you can try installing protractor again on a diff drive
@wasimakram-nz5gq
@wasimakram-nz5gq 4 жыл бұрын
Ok sir . Thank you so much for your reply
@samiraalma389
@samiraalma389 4 жыл бұрын
@@wasimakram-nz5gq Can you share what was the solution for this issue ?
@karthikramadurai5067
@karthikramadurai5067 4 жыл бұрын
Please share the code of config.js and example_spec.js
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Karthik, I have added the details/links in the description of relevant videos. Pls check
@karthikramadurai5067
@karthikramadurai5067 4 жыл бұрын
@@RaghavPal Can you please share me the exact link where those codes are present?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Karthik, should find it here - github.com/Raghav-Pal/ProtractorFramework
@prasadhiwale5096
@prasadhiwale5096 4 жыл бұрын
Hi Thank you for video. While i executing the script in Visual studio windows 10- facing error -> ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. Could you please help me how should i fix it. Thank You.
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Prasad, can try bypassing execution policy with this command Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
@prasadhiwale5096
@prasadhiwale5096 4 жыл бұрын
Thank You for update...@Raghav@@RaghavPal
@dmitriipopov3189
@dmitriipopov3189 5 жыл бұрын
90% of content is water :(
@RaghavPal
@RaghavPal 5 жыл бұрын
Hi Dmitrii Popov, pls let me know your issue in detail. This is a video in a series, I will be making more soon.
@saarahskudil9432
@saarahskudil9432 3 жыл бұрын
Hi Raghav, I was trying to find elements and i cannot find ng-model or anyother locators. So i was trying to write the xpath and find the elements. My xpath is correct, but when i am running, i am getting error as 1 failed specs. Please help me on this issue
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Priya, will need to check the error message and logs
@vITchallenge
@vITchallenge 2 жыл бұрын
It cant run in VSC terminal :(
@RaghavPal
@RaghavPal 2 жыл бұрын
what is the error
@vITchallenge
@vITchallenge 2 жыл бұрын
​@@RaghavPal If i run code in VSC terminal I see message "The term 'protractor' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again." When I run code in cmd everethink work good.
Protractor Beginner Tutorial 7 | How to create first test case in protractor
26:34
Automation Step by Step
Рет қаралды 60 М.
Protractor Beginner Tutorial 4 | How to setup Protractor on windows
16:32
Automation Step by Step
Рет қаралды 52 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 27 МЛН
Inside Out 2: ENVY & DISGUST STOLE JOY's DRINKS!!
00:32
AnythingAlexia
Рет қаралды 14 МЛН
Protractor Beginner Tutorial 9 | POM in Protractor
21:40
Automation Step by Step
Рет қаралды 28 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
What’s Up with Laravel? It’s Everywhere, and Here’s Why!
6:22
Protractor Beginner Tutorial 14 | How to run Protractor tests from Jenkins
15:11
Automation Step by Step
Рет қаралды 13 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 81 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 131 М.
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33