How to use HashMap in Selenium WebDriver || Interview Question

  Рет қаралды 47,045

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Пікірлер: 43
@sagarsjdjfn
@sagarsjdjfn 3 жыл бұрын
very useful - only channel on youtube that shows all selenium concepts in such detail - keep up the good work. "Dev manus nikla re tu toh..... "
@mythilik4234
@mythilik4234 4 жыл бұрын
It's a very useful concept to be known by every automation tester. Thanks a lot for the great tutorial :)
@priyathangavel1048
@priyathangavel1048 5 жыл бұрын
U are just awesome... I am in love with Java all because of ur tutorials.. Thanks Naveen 💕
@naveenautomationlabs
@naveenautomationlabs 5 жыл бұрын
Thanks for watching :)
@rajatgoel2073
@rajatgoel2073 6 жыл бұрын
Very common interview question asked these days and you explained it very nice...Nice Explaination Naveen..😀😀
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
thanks Rajat :)
@binayakpadhi8086
@binayakpadhi8086 6 жыл бұрын
I quite like all your video tutorials.. very informative and helpful... Well Explained #Every chapter.. Thank you!! Will be waiting next ones :)..
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Thanks Binayak! :)
@vive121
@vive121 6 жыл бұрын
Excellent tutorial. Thanks Naveen :)
@satindersaini7895
@satindersaini7895 6 жыл бұрын
Very nice explained and very common interview question!
@arkaimps
@arkaimps 6 жыл бұрын
Thanks Naveen... Very explanatory and helpful video.. An query:: The point you were suggesting about use of HashMap where there is always a defined universal static value, but how to handle this when these values should be an Customer Input and not a determined hard coded value.. I may be wrong and silly.. Please help..
@NikhilaRao
@NikhilaRao 6 жыл бұрын
Very Helpful Naveen. Thanks!
@preethaarun9697
@preethaarun9697 3 жыл бұрын
well explained! Thank you
@Saravanan-lj9so
@Saravanan-lj9so 5 жыл бұрын
Very great...please post more videos.
@real_hello_kitty
@real_hello_kitty 4 жыл бұрын
Thanks 😊! Very useful.
@jajatikesharisahoo8628
@jajatikesharisahoo8628 6 жыл бұрын
Awesome explanation...........sir
@swatijoshi9624
@swatijoshi9624 5 жыл бұрын
Hi Naveen, All videos are awesome and very infornative and easy to understand. Could you please add video on how object oriented concepts like abstraction, encapsulation and polymorphism used in selenium framework. It is mostly asked in interviews.
@vsu1225
@vsu1225 5 жыл бұрын
Here you can go @ Swathi joshi ----www.softwaretestingmaterial.com/oops-concept-in-automation-framework/
@santhoshk8095
@santhoshk8095 6 жыл бұрын
Sir plz do add some manual testing concepts like test cases and other things..
@palashchatterjee1454
@palashchatterjee1454 4 жыл бұрын
Hello, Nice video, How to achive the same thing using excel and dataprovider. Could you please explain Thanks
@santhoshk8095
@santhoshk8095 6 жыл бұрын
nice explanation Sir..
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
thank you!
@gurpreetkaur2360
@gurpreetkaur2360 6 жыл бұрын
hi naveen ,, please share how to use hash maps in POM framework..
@varshatc4771
@varshatc4771 6 жыл бұрын
Can we use hashmap to read data from json file? Please create vedio to explain how to read dynamic data from json file?
@ArunKumararunpgb
@ArunKumararunpgb 6 жыл бұрын
Naveen,How to use Hash map using excel and in data provider method?
@kshipra4504
@kshipra4504 3 жыл бұрын
Hi!! Where to use Hashmap and where to use Data provider?
@spidyniks
@spidyniks 4 жыл бұрын
I have seen hashmap = new hashmap; how do we visualize this
@lingarajmahanta
@lingarajmahanta 6 жыл бұрын
What is the difference between hashmap & properties file.? I am using properties file for the same.
@mariabajwa8632
@mariabajwa8632 5 жыл бұрын
thank you
@shashibhushan3370
@shashibhushan3370 5 жыл бұрын
good
@akshayrao7482
@akshayrao7482 6 жыл бұрын
Can anyone share the link of website which we I can perform automation testing on ghY site......
@gowthamkrishna6469
@gowthamkrishna6469 6 жыл бұрын
naveen i want to attend your online classes...how can i reach you
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
mail me at naveenanimation20@gmail.com
@maheshtenapali8938
@maheshtenapali8938 5 жыл бұрын
Hi Naveen . I have created the same code by using your tutorial but when am using TestNG .. every time test case is failing with null pointer exception, but if i run with main method it is working fine. could you please help me. please find the code. Data class: ---------------------------- package FreeCRMTesting; import java.util.HashMap; public class Data { public static HashMap getuserLogininfo() { HashMap userMap = new HashMap(); userMap.put("customer", "samcurran_India@12345"); return userMap; } public static HashMap Monthmap() { HashMap monthmap = new HashMap(); monthmap.put(1, "January"); monthmap.put(1, "February"); monthmap.put(1, "March"); monthmap.put(1, "April"); monthmap.put(1, "June"); monthmap.put(1, "July"); monthmap.put(1, "August"); monthmap.put(1, "September"); monthmap.put(1, "October"); monthmap.put(1, "November"); monthmap.put(1, "December"); return monthmap; } } Free CRM test class code : ---------------------------- package FreeCRMTesting; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class FreeCRMTest { WebDriver driver; public String Customercredentials; public String customerinfo[]; @BeforeMethod public void setUp() { System.setProperty("webdriver.chrome.driver", "C:\\Users\\mahesh_timothy\\Desktop\\chrome\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); System.out.println("Launching Chrome browser"); driver.get("classic.crmpro.com/index.cfm"); driver.manage().timeouts().pageLoadTimeout(40,TimeUnit.SECONDS); driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); } @Test public void loginwithcustomerTest() { Customercredentials = Data.getuserLogininfo().get("customer"); String customerinfo[] = Customercredentials.split("_"); driver.findElement(By.name("username")).sendKeys(customerinfo[0]); driver.findElement(By.name("password")).sendKeys(customerinfo[1]); WebElement loginbtn = driver.findElement(By.xpath("//input[@type='submit']")); JavascriptExecutor js = (JavascriptExecutor) driver; js.executeScript("arguments[0].click();", loginbtn); } }
@nalinaksheepanda1596
@nalinaksheepanda1596 5 жыл бұрын
Here in setup method change " WebDriver driver = new ChromeDriver(); " to driver = new ChromeDriver();
@maheshtenapali8938
@maheshtenapali8938 5 жыл бұрын
@@nalinaksheepanda1596 thank you...now I tried it's working....if you don't mine...can you share some good interview questions on selenium and java ..please
@nalinaksheepanda1596
@nalinaksheepanda1596 5 жыл бұрын
@@maheshtenapali8938 Hi, I would suggest you to go through Naveen's playlist on youtube. He has covered all types of interview questions.
Всё пошло не по плану 😮
00:36
Miracle
Рет қаралды 2,8 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 89 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 118 МЛН
How to find broken links & Images using Selenium Webdriver
45:35
Naveen AutomationLabs
Рет қаралды 98 М.
What is Selenium WebDriver Architecture?
50:38
Naveen AutomationLabs
Рет қаралды 150 М.
Viral Video of a Man's Crazy Job Interview
16:02
Darryl Vega TV
Рет қаралды 1,4 МЛН
What is HTML DOM & StaleElement Exception in Selenium
36:04
Naveen AutomationLabs
Рет қаралды 81 М.
Explain OOPS Concepts in Selenium Automation Framework
20:04
RD Automation Learning
Рет қаралды 25 М.
Mystery of StaleElementReferenceException in Selenium WebDriver
18:10
Naveen AutomationLabs
Рет қаралды 51 М.
Go Pointers: When & How To Use Them Efficiently
14:09
Anthony GG
Рет қаралды 81 М.