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..
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.
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 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
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..... "
It's a very useful concept to be known by every automation tester. Thanks a lot for the great tutorial :)
U are just awesome... I am in love with Java all because of ur tutorials.. Thanks Naveen 💕
Thanks for watching :)
Very common interview question asked these days and you explained it very nice...Nice Explaination Naveen..😀😀
thanks Rajat :)
Very nice explained and very common interview question!
Excellent tutorial. Thanks Naveen :)
well explained! Thank you
I quite like all your video tutorials.. very informative and helpful... Well Explained #Every chapter.. Thank you!! Will be waiting next ones :)..
Thanks Binayak! :)
Very great...please post more videos.
Very Helpful Naveen.
Thanks!
Awesome explanation...........sir
Thanks 😊! Very useful.
Sir plz do add some manual testing concepts like test cases and other things..
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..
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.
Here you can go @ Swathi joshi ----www.softwaretestingmaterial.com/oops-concept-in-automation-framework/
nice explanation Sir..
thank you!
Hello,
Nice video,
How to achive the same thing using excel and dataprovider.
Could you please explain
Thanks
good
hi naveen ,, please share how to use hash maps in POM framework..
Can we use hashmap to read data from json file? Please create vedio to explain how to read dynamic data from json file?
thank you
I have seen hashmap = new hashmap; how do we visualize this
Can anyone share the link of website which we I can perform automation testing on ghY site......
Naveen,How to use Hash map using excel and in data provider method?
Hi!! Where to use Hashmap and where to use Data provider?
What is the difference between hashmap & properties file.? I am using properties file for the same.
naveen i want to attend your online classes...how can i reach you
mail me at naveenanimation20@gmail.com
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);
}
}
Here in setup method change " WebDriver driver = new ChromeDriver();
" to driver = new ChromeDriver();
@@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
@@maheshtenapali8938 Hi, I would suggest you to go through Naveen's playlist on youtube. He has covered all types of interview questions.