Java Program 10: Replace All Occurrence Of Sub string In Given String

Hello folks, In this post, we will learn how to replace a sub string in a given string. Detailed description of problem is given below: Problem: You have an input string and you need to replace sub string from new sub string in given input string. Example: Input: This bike is my bike. Action: Replace … Continue reading Java Program 10: Replace All Occurrence Of Sub string In Given String

Frequently Asked Java Program 09: Printing Words In Circular Order From Given Index

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will see a Java program to Printing Words In Circular Order From Given Index. Problem: Suppose you have below string: "Make Selenium Easy" Where -"Make" is at position zero. -"Selenium" is at first position . -"Easy" is at … Continue reading Frequently Asked Java Program 09: Printing Words In Circular Order From Given Index

Handling Any Types Of Listbox/dropdown In Selenium Webdriver

Hello Guys, In this post we will learn how to handle a listbox/dropdown. What is dropdown/listbox? Suppose there is a form. This form consists below fields: Title Name Gender DOB: Day, Month, Year Country If you notice, some of fields can accept value from some definite set of values. For example: Title can be  any … Continue reading Handling Any Types Of Listbox/dropdown In Selenium Webdriver

All About getText() method: What, Why And How.

Hello Folks, In this post we will learn below topics: What is getText() method? Why we use getText() method? How we use getText() method? [Interview Question] Print all languages supported by Google. What are differences between getText() and getAttribute() methods? Let's start: What is getText() method? getText() is a method which gets you the visible … Continue reading All About getText() method: What, Why And How.

Frequently Asked Java Program 08: Program to find occurrence of individual characters in a given string.

Hello Folks, As part of Frequently Asked Java Programs In Interviews For Freshers And Experienced, in this post we will learn to develop a java program to find out occurrence of individual characters in a given string. Logic: To get input from user, we will use Scanner class.We will use Map interface concept here which deals … Continue reading Frequently Asked Java Program 08: Program to find occurrence of individual characters in a given string.

Part 6: Waits In Selenium: What Happens When We Mix Implicit Wait And Explicit Wait ?

Hello Folks, In last post we have seen the behavior of webdriver when mixing sleep with other waits. In this post, we will learn behavior of webdriver when we mix implicit wait and explicit wait. I hope, you will have good idea about implicit wait and explicit wait from my old posts. We know when … Continue reading Part 6: Waits In Selenium: What Happens When We Mix Implicit Wait And Explicit Wait ?