How to use HashMap in Selenium WebDriver || Interview Question

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 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 ปีที่แล้ว +1

    It's a very useful concept to be known by every automation tester. Thanks a lot for the great tutorial :)

  • @priyathangavel1048
    @priyathangavel1048 5 ปีที่แล้ว +4

    U are just awesome... I am in love with Java all because of ur tutorials.. Thanks Naveen 💕

  • @rajatgoel2073
    @rajatgoel2073 6 ปีที่แล้ว +4

    Very common interview question asked these days and you explained it very nice...Nice Explaination Naveen..😀😀

  • @satindersaini7895
    @satindersaini7895 6 ปีที่แล้ว +1

    Very nice explained and very common interview question!

  • @vive121
    @vive121 6 ปีที่แล้ว +3

    Excellent tutorial. Thanks Naveen :)

  • @preethaarun9697
    @preethaarun9697 3 ปีที่แล้ว

    well explained! Thank you

  • @binayakpadhi8086
    @binayakpadhi8086 6 ปีที่แล้ว +3

    I quite like all your video tutorials.. very informative and helpful... Well Explained #Every chapter.. Thank you!! Will be waiting next ones :)..

  • @Saravanan-lj9so
    @Saravanan-lj9so 5 ปีที่แล้ว +1

    Very great...please post more videos.

  • @NikhilaRao
    @NikhilaRao 6 ปีที่แล้ว +1

    Very Helpful Naveen.
    Thanks!

  • @jajatikesharisahoo8628
    @jajatikesharisahoo8628 6 ปีที่แล้ว +1

    Awesome explanation...........sir

  • @real_hello_kitty
    @real_hello_kitty 4 ปีที่แล้ว

    Thanks 😊! Very useful.

  • @santhoshk8095
    @santhoshk8095 6 ปีที่แล้ว +1

    Sir plz do add some manual testing concepts like test cases and other things..

  • @arkaimps
    @arkaimps 6 ปีที่แล้ว +1

    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..

  • @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 ปีที่แล้ว +1

    nice explanation Sir..

  • @palashchatterjee1454
    @palashchatterjee1454 4 ปีที่แล้ว

    Hello,
    Nice video,
    How to achive the same thing using excel and dataprovider.
    Could you please explain
    Thanks

  • @shashibhushan3370
    @shashibhushan3370 5 ปีที่แล้ว

    good

  • @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?

  • @mariabajwa8632
    @mariabajwa8632 5 ปีที่แล้ว

    thank you

  • @spidyniks
    @spidyniks 4 ปีที่แล้ว

    I have seen hashmap = new hashmap; how do we visualize this

  • @akshayrao7482
    @akshayrao7482 6 ปีที่แล้ว

    Can anyone share the link of website which we I can perform automation testing on ghY site......

  • @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?

  • @lingarajmahanta
    @lingarajmahanta 6 ปีที่แล้ว

    What is the difference between hashmap & properties file.? I am using properties file for the same.

  • @gowthamkrishna6469
    @gowthamkrishna6469 6 ปีที่แล้ว

    naveen i want to attend your online classes...how can i reach 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 ปีที่แล้ว +1

      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.