How to verify page title in Selenium Webdriver

  Рет қаралды 89,454

Mukesh otwani

Mukesh otwani

Күн бұрын

Пікірлер: 48
@skkkks2321
@skkkks2321 5 жыл бұрын
Its worth learning new skills and you are making it easy to learn without cost,Hats off for you Mukesh.
@acthilina
@acthilina 4 жыл бұрын
Thank you. I learnt something new here today.
@bharatvarshney2666
@bharatvarshney2666 7 жыл бұрын
Hi Mukesh.....Great Job!!! I am trying to learn Selenium only by watching your videos....hope I will learn it ASAP. Thanks again for putting all these videos together buddy :-
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Sure Bharat you will learn ASAP and I would suggest dont stop with Selenium only. Market is tough now a days so try learning related tools as well like Cucumber, Appium, Web Services and so on. All are very easy and high in Demand.
@9745754904
@9745754904 6 жыл бұрын
@Mukesh For every page , we need to verify the Page title or just only the title of landing page
@TowardsDarkness
@TowardsDarkness 8 жыл бұрын
Hi Mukesh.....Great Job!!! I am trying to learn Selenium only by watching your videos....hope I will learn it ASAP. Thanks again for putting all these videos together buddy :-) -Shiva.
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
Thanks Shiva :) Keep learning.
@akankshakhadatkar7059
@akankshakhadatkar7059 4 жыл бұрын
hi Mukesh, Do you have a video on explanation of project Selenium + TestNG framework with the execution ?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hey Akanksha here is the playlist kzbin.info/aero/PL6flErFppaj0WwNOMFeXPVlNCDuJyPYFi
@akankshakhadatkar7059
@akankshakhadatkar7059 4 жыл бұрын
@@Mukeshotwani thank you
@quepham2612
@quepham2612 6 жыл бұрын
thank you very much, great tutorials !
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Hi Que Pham thanks I am glad it helped you.
@shilparaghuwanshi2418
@shilparaghuwanshi2418 4 жыл бұрын
Could you please tell how to test - click on a link (if available) and switch to new tab and verify the title?
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Hi Shilpa, You can use below approach to handle this 1- use findElements method which will return List, calculate the size if size >0 then click 2- If after click open is opening in new tab then switch to new window and then use assert learn-automation.com/handle-multiple-windows-in-selenium-webdriver/
@shilparaghuwanshi2418
@shilparaghuwanshi2418 4 жыл бұрын
@@Mukeshotwani Thank you!
@SuperPrir
@SuperPrir 6 жыл бұрын
How to capture the text in the "Complete solutions for individuals who are passionate about automation" in the learn.automation site.
@nehalsingh785
@nehalsingh785 3 жыл бұрын
awesome tutorial sir
@Mukeshotwani
@Mukeshotwani 3 жыл бұрын
Thanks Nehal
@chauhanrahul155
@chauhanrahul155 4 жыл бұрын
I am getting Syntax error on token "verifyApplicationTitle", AnnotationName expected after this token .I created a separate class for @Test.Why is it coming? What will be its resoluion?
@mounikakasulawada9491
@mounikakasulawada9491 4 жыл бұрын
Thank you.
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
You're welcome! Mounika
@aliadnan38
@aliadnan38 8 жыл бұрын
What will happen when in assertion you have multiple test cases and one test case fails ? Let's say title is not matched. How control will be moved to next test? I understand you can use verify then, but how we can achieve this with assertion? Try, Catch?
@Mukeshotwani
@Mukeshotwani 8 жыл бұрын
+Adnan Ali Hi Adnan, Nice question if you talk about test level it will start next test but if you want to resume the test after assertion as well check Soft Assertion in Selenium which will do the same kzbin.info/www/bejne/gHvcmKdqjah_eNE
@mounikabora9456
@mounikabora9456 5 жыл бұрын
Can you explain how to resolve webDriverException please
@chauhanrahul155
@chauhanrahul155 4 жыл бұрын
How to download TestNG plugin?
@arpitkumar7576
@arpitkumar7576 6 жыл бұрын
thanks sir
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
Most welcome Amit
@MukundEquity
@MukundEquity 2 жыл бұрын
thank you 🙏
@764Priya
@764Priya 7 жыл бұрын
How do we get title of the page which comes after login?
@Mukeshotwani
@Mukeshotwani 7 жыл бұрын
Hi Priya, same method will help after login too.
@shivambhargava6092
@shivambhargava6092 6 жыл бұрын
String title = driver.getTitle(); Then pass this variable title Utility.captureScreenshot(driver,title); Now you'll get your screenshot name as the page title.
@devudeva1268
@devudeva1268 3 жыл бұрын
Thanks
@KaranSharma-lm6eh
@KaranSharma-lm6eh 2 жыл бұрын
All these are on Java, but no such supporting tutorials for Javascript !
@Mukeshotwani
@Mukeshotwani 2 жыл бұрын
Hi Karan I have seperate playlist on JavaScript on my channel. Please check 😊
@KaranSharma-lm6eh
@KaranSharma-lm6eh 2 жыл бұрын
@@Mukeshotwani thanks for the information, surely will check :)
@parulisha
@parulisha 6 жыл бұрын
Can we change the title for a webPage using selenium java
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
+parul khullar as a tester no we can only verify the page title using Selenium but if you have dev level access to application then you can change the title and build the application
@parulisha
@parulisha 6 жыл бұрын
I think i could. :) WebDriver driver; JavascriptExecutor executor = (JavascriptExecutor) driver; String title = (String)executor.executeScript("document.title = 'New Title'");
@Mukeshotwani
@Mukeshotwani 6 жыл бұрын
+parul khullar this won't be permanent if u refresh it will revert the changes
@parulisha
@parulisha 6 жыл бұрын
thanks.
@mohmashooqdowlati7933
@mohmashooqdowlati7933 4 жыл бұрын
Your internet speed and quality is so annoying, why dont you use a better company to prevent all these delays and pauses sir? thanks
@Mukeshotwani
@Mukeshotwani 4 жыл бұрын
Sorry for bad experience Mashooq, in recent videos you wont find this issue.
@towhidskynet
@towhidskynet 7 жыл бұрын
9:18
@Allinoneclick23
@Allinoneclick23 4 жыл бұрын
very nice
How to Verify Error messages in Selenium Webdriver
10:57
Mukesh otwani
Рет қаралды 125 М.
How to execute failed test cases in Selenium webdriver
17:09
Mukesh otwani
Рет қаралды 97 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 179 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 59 МЛН
How to Implement TestNG listeners in Selenium Webdriver
24:22
Mukesh otwani
Рет қаралды 153 М.
Cross Browser Testing In Selenium Webdriver Using TestNG Parameters
24:31
How to use Assertion in Selenium TestNG
15:21
Mukesh otwani
Рет қаралды 146 М.
Dynamic XPath in Selenium  using Different Approaches
28:12
Mukesh otwani
Рет қаралды 300 М.
Explicit Wait in Selenium Webdriver
18:08
Mukesh otwani
Рет қаралды 90 М.
How to Capture Screenshot in Selenium Webdriver
26:03
Mukesh otwani
Рет қаралды 201 М.
How To Find Broken Links Using Selenium With Java
12:22
Mukesh otwani
Рет қаралды 83 М.
How to use xPath in Selenium WebDriver to grab SVG elements?
8:05
Utkarshaa Academy
Рет қаралды 231
Run Selenium Test Cases Using Pipeline Job
18:49
AutomationOnTheGo
Рет қаралды 15 М.
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН