Skip to main content

Posts

How to Open Browser in Incognito / InPrivate mode using Selenium / WebDriver

How to Open Chrome Browser in Incognito mode using Selenium / WebDriver ?          We will use Chrome Drivers Capabilities & ChromeOptions to open Chrome browser in incognito mode. To be precise, we have to use argument --incognito  for ChromeOption as shown in below example- How to Open Firefox Browser in Incognito / Private mode using Selenium / WebDriver ?     We will use Firefox Profile   to open Firefox in private mode. To be precise, we will set browser.private.browsing.autostart in firefox profile preference. How to Open Internet Explorer (IE) Browser in InPrivate mode using Selenium / WebDriver ?       We will use IE Driver Capabilities to open IE in InPrivate mode. To be precise we will use FORCE_CREATE_PROCESS capability along with IE_SWITCHES to which parameter would be -private This is all for now. Cheers!!

How to open a new tab in a browser using Selenium WebDriver?

TL;DR :This is a story. If a story does not fascinate you, jump to the solution . Prologue :- If you constantly monitor many forums for some reason like LinkedIn groups, Google groups, Stackoverflow for Selenium related queries, you will find a question that has been asked many times with the same answer. Yes, I’m talking about the below question - How to open a new tab in a browser using Selenium WebDriver? Or this might have been asked in different style like - Open new tab instead of a new window using Selenium WebDriver You will easily find an answer after quick Google search. Why this post?             Because I do not agree with the most accepted answer of this question. I am not saying that solution provided is wrong or it won't work, I am just saying that I disagree with the solution provided. What is the solution provided by the way -  Here starts our story. Open a blank tab in a browser using Selenium WebDriver And very obvious solution would be use of sendKeys         

How to uncheck proxy server settings in chrome browser using Selenium WebDriver

If you have read my past post , you might know that I follow a lot of forums to understand what type of issues are faced by the community. This helps me to broaden my knowledge. A couple of days ago, I stumbled upon this question on such forum on Facebook. Question was- “ How to uncheck proxy server settings in chrome browser using selenium Code ?” with Below image. Proxy Server Setting for Browser That was a really interesting question, thanks for this question ‎ Roby Chauhan . Defining problem statement:- Uncheck proxy setting while invoking Chrome browser using Selenium WebDriver. Understanding Problem Statement :- I first tried to solve this question manually and realised once again that proxy setting that you applied in one browser are not just that browser specific but it OS specific. That means if you set proxy in one browser it is applicable to all browser. If you set the wrong proxy in one browser you would not able to connect to the internet using any browser. Refer image b

History Of Selenium WebDriver

I have assumed that you have already read my past blog entry, Introduction to Selenium WebDriver and here on the quest to find out technical answer of question - what selenium is? Before getting to the answer, I want you to go though the below info-graphics of history of Selenium WebDriver.  History of Selenium Now that you are aware of history, Can you answer what Selenium is? Selenium is set of tools which includes :- Selenium IDE Selenium RC WebDriver Selenium Grid So meaning of Selenium depends upon the context, c iting the man himself - Simon Stewart here - Unfortunately, the Selenium project uses a lot of jargon. Selenium Core is the heart of the original Selenium implementation, and is a set of Javascript scripts that control the browser. This is sometimes referred to as "Selenium" and sometimes as "Core". Selenium RC was the name given to the language bindings for Selenium Core, and is commonly, and confusingly, referred to as just "Selenium"

How can I enhance/improve my selenium skills?

Two months ago, when it was just six months in automation using Selenium and then I had a question - how can I enhance/improve my selenium skills? In this post, I am trying answer this question.    You might think, why do I think that I have eligibility to answer this question? OK, here is the story- it's been just eight months that I have started with Selenium and I got an amazing opportunity to explore all aspect of Selenium and related tools like Selenium WebDriver API for Web-App automation, Selenium Grid for test distribution, TestNG for controlling test flow, Extent Reporting for awesome test results, Appium for mobile automation, AutoIT & Sikuli for handling native OS control opened from browsers (Browse window for file upload) & bit of Maven for dependency management & testsuite invocation. I have even designed two automation frameworks for two different products.     As I worked on whole set of tools in six months, I was exposed to very high learning cur

Data Driven Testing And Negative Testing

As a QA, I know what is Data Driven Testing (DDT) and what is Negative Testing refers to from last 5 years. But before today, I had never realized that negative testing is a subset of data-driven testing. With this post, I will try to explain my understanding of data-driven testing & negative testing and why I think of negative testing as a subset of data-driven testing.        As per Wikipedia , data-driven testing is a term used in the testing of computer software to describe testing done using a table of conditions directly as test inputs and verifiable outputs as well as the process where test environment settings and control are not hard-coded. This sounds very hard to me, I will try to make it simple but not simpler for you. “Testing is driven by data.” But what does that exactly means? Example :- Addition Operation in Calculator Addition Example of Data-Driven Testing So as you can see in above example, Output of operation changes as per the input passed. That means resul