Object repository in Selenium Webdriver - Session 9

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

ความคิดเห็น • 54

  • @naveenautomationlabs
    @naveenautomationlabs  7 ปีที่แล้ว +1

    subscribe my channel for more Selenium-Java videos.
    th-cam.com/channels/XJKOPxx4O1f63nnfsoiEug.html?view_as=subscriber

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

    Hi Naveen, Your videos are very informative and anyone can learn from them. Thank you for such awesome tuterials.

  • @omkarpotdar2763
    @omkarpotdar2763 2 ปีที่แล้ว

    Very very informative session Naveen. Keep it up and Thank you.

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

    As usual awesome video. I think people should like,comment,share and subscribe this channel. I don't know why some people dislike this video. Really apprecite your effort Naveen. Thanks

  • @simil07
    @simil07 5 ปีที่แล้ว +2

    Thank you so much.... you have earned a new fan sir...

  • @arabindamohanty2190
    @arabindamohanty2190 4 ปีที่แล้ว +1

    Thanks alot for all your efforts it helps me a lot

  • @sakshiaggarwal6199
    @sakshiaggarwal6199 6 หลายเดือนก่อน

    Thank you so much Naveen!! 🙏

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

    hi Naveen
    It is necessary to keep the config.properties file in the folder can I put that file in our desktop or some other location?

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

    @NaveenAutomationlab we also create Constants classes too.Both are used for same purpose??

  • @yashu7296
    @yashu7296 3 ปีที่แล้ว +1

    Thank You, Sir!

  • @NehaPatil-yt9uu
    @NehaPatil-yt9uu 4 ปีที่แล้ว

    Very informative videos.. but i have one question we use data driven also so why we need this concept

  • @sruthiyandapalli2078
    @sruthiyandapalli2078 4 ปีที่แล้ว +1

    Naveen, can you please explain how to select values from span drop down ?

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

    Hello Naveen, Can I write properties file without main() method??

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

    is config.properties and desired capabilities same things?

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

    Hi naveen if at run time if want to check if the xpath is not working try using css how can we implement this?

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

    👍Thank you Naveen.

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

    Hi Naveen, can it not be called a key word driven framework where we are using key and value pairs? or hybrid where we are also driving the data (Data driven) plus kyword driven

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

    Naveen your videos are very helpful :)

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

    Hi Naveen,
    I am getting null pointer exception for driver.get(URL); statement..can you please help how to resolve?

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

    I have one query. The key part in the config.properties file will always be same or it can be changed?

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

    Thanks Naveen Video is Very Helpful.
    Can we use the same technique with FindBy instead of driver.FindElement as the same you have explained in Framework Design Video.Please suggest

  • @bsrinivas165
    @bsrinivas165 7 ปีที่แล้ว +1

    Good Explanation 👍👍

  • @abhilashkancharla251
    @abhilashkancharla251 5 ปีที่แล้ว +1

    Hi Naveen
    Make a video on "How to open link in new tab" using selenium.
    plz do this

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

    Can we use the seprate properties files for seprate web pages

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

    Hi Naveen, when I run above script I am getting Null as a result. Can you plz help me where I am doing wrong

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

    Naveen good video explanation - please make one correction - "FileInputStream" class available in java.io package but in video you said java.util package. Thanks

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

    Hi Naveen,
    I am getting this while trying to fetch Xpath value from config file in my script.Kindly help me in sorting this ot
    Exception in thread "main" java.lang.IllegalArgumentException: Cannot find elements when the XPath is null.
    at org.openqa.selenium.By$ByXPath.(By.java:339)
    at org.openqa.selenium.By.xpath(By.java:92)
    at Demo.RatingCenterLogin.main(RatingCenterLogin.java:73)

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

    You made your readproperty dynamic. Can you please tell me how to do this in step defination, i am using static data in my step defination. It would be great if i can use dynamic data in step defination

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

    how to use properties file to test multiple set of data for same page? Or is it mainly used as Object repository?

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

      i didn't get your question i guess
      i understand you are trying to say having multiple set of data which you can
      You can store int, string , WebElement as string
      Hope i have answered ur query

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

    Hi Naveen,
    Even after deleting the config file, I am able to load config.properties. Also, even after updating values in config file, old values are fetched. Please help.

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

      i think you are loading the file from another project must be some setup issue

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

    Thanks solve my problem

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

    Hi Naveen, I am getting NullPointerException. I am using the same code still. Can you please tell me how to make it work

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

      Mail me ur code at naveenanimation20@gmail.com

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

      @@naveenautomationlabs Mailed you the code. Please check. Thanks for your time :)

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

    God Bless You..

  • @ADITYACOOL90
    @ADITYACOOL90 7 ปีที่แล้ว

    @Naveen AutomationLabs : Can you tell how we can use properties file to run local and sauce labs execution?

    • @naveenautomationlabs
      @naveenautomationlabs  7 ปีที่แล้ว +2

      It's simple, you just need to change the value of "browser" property in config.properties file. sample code here:
      String browserName = prop.getProperty("browser");
      System.out.println(browserName);
      if (browserName.equals("chrome")) {
      System.setProperty("webdriver.chrome.driver", "/Users/naveenkhunteta/Downloads/chromedriver");
      driver = new ChromeDriver(); // launch chrome
      }
      else if(browserName.equals("FF")){
      System.setProperty("webdriver.chrome.driver", "/Users/naveenkhunteta/Downloads/geckodriver");
      driver = new FirefoxDriver();
      }
      else if(browserName.equals("saucelabs")){ //if browser property is equal to "saucelabs" in config.properties file
      public static final String USERNAME = "YOUR_USERNAME";
      public static final String ACCESS_KEY = "YOUR_ACCESS_KEY";
      public static final String URL = "" + USERNAME + ":" + ACCESS_KEY
      +"@ondemand.saucelabs.com:80/wd/hub";
      DesiredCapabilities caps = DesiredCapabilities.chrome();
      caps.setCapability("platform", "Windows XP");
      caps.setCapability("version", "43.0");
      driver = new RemoteWebDriver(new URL(URL), caps);
      }
      driver.get("www.google.com");

    • @ADITYACOOL90
      @ADITYACOOL90 7 ปีที่แล้ว +1

      Thanks :)
      Also please make a video on Desired capabilities and option class of browser. When to use which one. And what is the diff between them.

    • @naveenautomationlabs
      @naveenautomationlabs  7 ปีที่แล้ว

      Sure Aditya. Desired capabilities will be covered during Grid sessions. For your knowledge point of view Desired capabilities are always used when you want to run test cases remotely like on VMs/SauceLabs/BrowserStack etc.. Browser based classes are used when you need to run test cases locally.

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

    Thank you very much!

  • @007prameet
    @007prameet 5 ปีที่แล้ว

    nice exactly i was need

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

    Thank you so much :)

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

    Thanks. 👍

  • @SlavaPonezha
    @SlavaPonezha 4 ปีที่แล้ว +1

    1.25 speed is good

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

    Thank you so much :)