Selenium WebDriver RealTime Example - 1

Selenium WebDriver RealTime Example - 1

50,922 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@manishbhardwaj6564
@manishbhardwaj6564 - 31.07.2018 07:54

Good one bro

Ответить
@hello6990
@hello6990 - 31.07.2018 08:34

When you do a real time example, kindly include reporting also part of that , so that we will get to know, the end to end flow, thanks

Ответить
@VijayKumar-jm1ww
@VijayKumar-jm1ww - 01.08.2018 10:38

Thanks for the video and good real time example.I have two questions could you please answer them.
1.Why have you not used Xpath (Ex : //div[@id='loanamountslider']//span) instead of CSS.
2.Does this script works on different screens like desktop,laptop etc... If the resolution changes does it works.

Ответить
@chakkarafy
@chakkarafy - 01.08.2018 23:50

Hi Krishan, I've recently attended an interview from Nike. I didn't get the job but the question asked was..How to prevent threats in selenium?
nike has their websites running in china,japan and usa and how do you prevent threats?

Ответить
@punitchaudhari601
@punitchaudhari601 - 11.01.2019 16:53

I didn't understand that what is the benefit of this automation when you can do it manually, in mean time while you spend time writing those scripts. I have a question that can we set loop and test all possible combinations with new value everytime,

Ответить
@MIKEYSREVIEWS
@MIKEYSREVIEWS - 03.02.2019 05:33

Learned something new and had no idea this can even be done. Thanks great video.

Ответить
@vipintekade6400
@vipintekade6400 - 01.05.2019 19:31

can we do it in ecllipse ?

Ответить
@vipintekade6400
@vipintekade6400 - 01.05.2019 20:07

Hi in my chrome slider option is not showing .

Ответить
@vipintekade6400
@vipintekade6400 - 01.05.2019 20:59

[RemoteTestNG] detected TestNG version 6.9.9
[TestNG] Running:
C:\Users\Vipin\AppData\Local\Temp\testng-eclipse--1055828283\testng-customsuite.xml

Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 14831
Only local connections are allowed.
[1556733333.515][WARNING]: Timed out connecting to Chrome, retrying...
FAILED: calculateLoanEMI
java.lang.AssertionError: expected [49,919] but found [92,439]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:496)
at org.testng.Assert.assertEquals(Assert.java:125)
at org.testng.Assert.assertEquals(Assert.java:178)
at org.testng.Assert.assertEquals(Assert.java:188)
at excercise.RealTimeSelenium1.calculateLoanEMI(RealTimeSelenium1.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:774)
at org.testng.TestRunner.run(TestRunner.java:624)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
at org.testng.SuiteRunner.run(SuiteRunner.java:261)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.run(TestNG.java:1048)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)


===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================

[TestNG] Time taken by org.testng.reporters.XMLReporter@2752f6e2: 383 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@48140564: 282 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@c818063: 795 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@7dc36524: 1598 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 99 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@2133c8f8: 369 ms
[RemoteTestNG] detected TestNG version 6.9.9
[TestNG] Running:
C:\Users\Vipin\AppData\Local\Temp\testng-eclipse--1055828283\testng-customsuite.xml

Starting ChromeDriver 2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e) on port 14831
Only local connections are allowed.
[1556733333.515][WARNING]: Timed out connecting to Chrome, retrying...
FAILED: calculateLoanEMI
java.lang.AssertionError: expected [49,919] but found [92,439]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:496)
at org.testng.Assert.assertEquals(Assert.java:125)
at org.testng.Assert.assertEquals(Assert.java:178)
at org.testng.Assert.assertEquals(Assert.java:188)
at excercise.RealTimeSelenium1.calculateLoanEMI(RealTimeSelenium1.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
at org.testng.TestRunner.privateRun(TestRunner.java:774)
at org.testng.TestRunner.run(TestRunner.java:624)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
at org.testng.SuiteRunner.run(SuiteRunner.java:261)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1215)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.run(TestNG.java:1048)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)


===============================================
Default test
Tests run: 1, Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 1, Skips: 0
===============================================

[TestNG] Time taken by org.testng.reporters.XMLReporter@2752f6e2: 383 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@48140564: 282 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@c818063: 795 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@7dc36524: 1598 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 99 ms
[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@2133c8f8: 369 ms

Ответить
@vipintekade6400
@vipintekade6400 - 01.05.2019 21:01

this is the error i got when i run this case on ecllipse .Please replay me back .I will share my code in next comment .

Ответить
@LuaneCarolineAquinoCavalcanti
@LuaneCarolineAquinoCavalcanti - 19.12.2019 21:45

thanks!

Ответить
@andresd.rojasherrera6119
@andresd.rojasherrera6119 - 12.04.2020 01:07

Krishna Sakinala i hope you are well, i have got a question , i am interesting in a curse of udemy "Groovy Fundamentals For Testers - Step By Step" perhaps have you got any
discount coupon, I want to buy your course, greetings, I wait for an answer

Ответить
@shashankverma4044
@shashankverma4044 - 05.05.2020 10:43

Excellent explanation !! Thank you so much !!

Ответить
@agarwalshubh07
@agarwalshubh07 - 15.05.2020 10:33

the video is very helpful! Thanks!

can you upload a Selenium tutorial for New IRCTC website rain booking.?
I would be very happy to work with you work for this.
i don't have experience in Selenium but will do that.
really looking for someone who could help!

Ответить
@chelamalaramesh3200
@chelamalaramesh3200 - 24.07.2020 10:50

Hi sir I have one question
In this script u r using Action class why u r choosing action with out action u can't do it sir ???

Ответить
@RVRemoTube
@RVRemoTube - 24.08.2020 20:06

thank you so much

Ответить
@swarali2458
@swarali2458 - 30.11.2020 13:02

Sir could you please make more videos on real time examples of selenium

Ответить
@BasilPaulose
@BasilPaulose - 18.02.2021 07:56

Thanks

Ответить
@mansigaikwad2216
@mansigaikwad2216 - 22.03.2021 14:52

Great Job Sir. Will find myself lucky if got one live entire automation project exactly the way you have created this video for a single module.

Ответить
@anandvihari9407
@anandvihari9407 - 07.05.2021 18:24

Sir i'm getting error at xOffset and also yOffset

Ответить
@logeshwarik4802
@logeshwarik4802 - 09.06.2021 11:46

Sir, you r teaching is well. Kindly share your mail id

Ответить
@EgaKrishnaSatya
@EgaKrishnaSatya - 09.07.2021 15:12

Could u give the software for Automated selenium testing tool ..i learned this course long back before 2yrs. I dont have practical kmowldge i learnded manual testing and automated i dnt hve software s of that to.practice because of no desktop/laptop please guide me i want to switch from technical to non techcnl job i want to do practice and i want to get job on this testing job

Ответить
@karthik-bo7bs
@karthik-bo7bs - 31.10.2021 12:09

super bro

Ответить
@ryanaugustine5940
@ryanaugustine5940 - 24.12.2021 09:55

If the pixels change on the Monitor being SD or FullHD or 2k or 4k or vertical orientation then this is a really bad test case. What if you run this on jenkins which has no monitor or chrome? Such hard coding needs to be avoided at all costs. Please tell me I am wrong and that this is not hardcoding. Will wait for your reply.

Ответить
@NatarajS0736
@NatarajS0736 - 27.12.2021 17:42

Why we are using CSS selector specifically to locate the slider circles? Can't we use other locators like Xpath? - Please clarify

Ответить
@abhishekgarud9258
@abhishekgarud9258 - 10.03.2022 15:42

sir ell or selenium which one is more preferable as a fresher.

Ответить
@ashishkumarmishra2346
@ashishkumarmishra2346 - 07.07.2022 16:12

Great Job... Please post more videos on real-time scenarios. It's a great help to all of us. Let me know if you provide paid classes on real-time scenario scripting.Thanks

Ответить
@siramnymisha3873
@siramnymisha3873 - 30.09.2022 07:13

Hi Sir. Thank you very much for the video. I don't know about Page Ruler prior to this video but got to know from this video🙂. Kindly make a series for a end to end project. Your explanation is up to the point..very neat and clean as well. Your series on end to end project explanation will definitely make us to learn new things and we will learn how to automate a real time project. Thank you once again😁

Ответить
@krushnagangurde1224
@krushnagangurde1224 - 28.11.2022 12:04

nice

Ответить