How to use HashMap in Selenium WebDriver || Interview Question

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

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 :)
@satindersaini7895
@satindersaini7895 6 жыл бұрын
Very nice explained and very common interview question!
@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 :)
@NikhilaRao
@NikhilaRao 6 жыл бұрын
Very Helpful Naveen. Thanks!
@Saravanan-lj9so
@Saravanan-lj9so 5 жыл бұрын
Very great...please post more videos.
@jajatikesharisahoo8628
@jajatikesharisahoo8628 6 жыл бұрын
Awesome explanation...........sir
@santhoshk8095
@santhoshk8095 6 жыл бұрын
Sir plz do add some manual testing concepts like test cases and other things..
@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..
@preethaarun9697
@preethaarun9697 3 жыл бұрын
well explained! Thank you
@real_hello_kitty
@real_hello_kitty 4 жыл бұрын
Thanks 😊! Very useful.
@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/
@gurpreetkaur2360
@gurpreetkaur2360 6 жыл бұрын
hi naveen ,, please share how to use hash maps in POM framework..
@palashchatterjee1454
@palashchatterjee1454 4 жыл бұрын
Hello, Nice video, How to achive the same thing using excel and dataprovider. Could you please explain Thanks
@ArunKumararunpgb
@ArunKumararunpgb 6 жыл бұрын
Naveen,How to use Hash map using excel and in data provider method?
@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?
@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.
@akshayrao7482
@akshayrao7482 6 жыл бұрын
Can anyone share the link of website which we I can perform automation testing on ghY site......
@santhoshk8095
@santhoshk8095 6 жыл бұрын
nice explanation Sir..
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
thank you!
@kshipra4504
@kshipra4504 3 жыл бұрын
Hi!! Where to use Hashmap and where to use Data provider?
@shashibhushan3370
@shashibhushan3370 5 жыл бұрын
good
@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
@mariabajwa8632
@mariabajwa8632 5 жыл бұрын
thank you
@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.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
#15 - Top 20 HashMap Interview Questions in Java || By Naveen AutomationLabs
27:35
How to find broken links & Images using Selenium Webdriver
45:35
Naveen AutomationLabs
Рет қаралды 99 М.
Log4j2 logging in Selenium Java Framework using Log4j2 Properties & Log4j2 xml
28:24
SDET Adda For QA Automation
Рет қаралды 24 М.
What is HTML DOM & StaleElement Exception in Selenium
36:04
Naveen AutomationLabs
Рет қаралды 82 М.
How to debug Selenium Framework Code using Eclipse Debugger
45:51
Naveen AutomationLabs
Рет қаралды 68 М.
What is Selenium WebDriver Architecture?
50:38
Naveen AutomationLabs
Рет қаралды 150 М.
18  How to handle dynamic google search using dynamic xpath
10:41
Prashant Mahajan
Рет қаралды 137
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН