Month: April 2018

Controlling Browser Driver Services In Selenium WebDriver

Hello Folks, Let’s learn something interesting in selenium webdriver. We know whenever we launch a browser, first browser serve is started which helps in communication between browser and selenium commands. The same process is repeated for every test if you launch and quit browser every time. Let’s understand above point with an example below: Run […]

Why Do We Require Browser Driver Executable File To Launch A Browser In Selenium WebDriver?

Hello Folks, It is very frequently asked interview question. Interviewer expects that you should be aware about internal logic of selenium. We know that to launch a browser through Selenium we need to download a browser driver executable file (chromedriver.exe, geckodriver.exe etc). Why do we require that? Let me relate it with a real time […]

Selenium Framework 4: Understand Linear Framework in Selenium

Hello Folks, In this post, we will learn about Linear Framework of Selenium webdriver. We know, any framework has three base components: Functionality, Code and Data. When we mix up all three base components at same place is called Linear framework. In fact it is not framework , it should be called as linear scripting. […]

Selenium Interview Questions: Why Do Not We Switch Back To Driver After Handling An Alert

Hello Folks, Recently this question was asked in interview to a candidate: We switch back to main window or default content after switching to a new window or frame, but not in case of Alert even we are switching to it. When we switch to a new window or frame, actually we jump to another […]

Locating Dynamic Web Elements In Selenium WebDriver : Conditional Xpaths And CSS

Hello Folks, In last post, we have seen how to create a conditional xpath. Continuing the same, here is another post. Consider below scenarios: Suppose there is an application for online appointment with doctors. If a user frequently signs in, it will show a message and button as “Welcome ! Book An Appointment” to proceed further. […]

Writing Conditional XPath In Selenium WebDriver

Hello Folks, In this post, we will see how can we write conditional XPaths in selenium webdriver. What is meant by Conditional XPaths? If I say you to write xpath for the web element which has text or contains as “Selenium”, you can write is easily as below: Has text= //*[text()=’Selenium’] Contains text= //*[contains(text(),’Selenium’)] But If […]

Selenium Framework 2: Why Do We Need A Framework In Selenium?

Hello Folks, In last post, we have seen some real time examples of a framework. Now we will relate all those with selenium frameworks. Let me define framework first. What is Framework? Framework is a collection of concepts you know in an organised manner with some proper rules, validation, proper exception and error handling which […]

Please wait...

Subscribe to new posts to become automation expert

Want to be notified when my new post is published? Get my posts in your inbox.