Using deleteCookieNamed() and deleteCookie() to delete cookies in selenium WebDriver

Earlier we learnt how to add cookie and get cookie details using different methods like addCookie(), getCookieNamed() and getCookies(). Sometimes you also need to delete cookies in selenium. Selenium delete cookies can be done using deleteCookieNamed() or passing cookie object in deleteCookie() method. Let’s see how to use deleteCookieNamed() and deleteCookie() to delete cookies in selenium test. Selenium … Read more

Using getCookies() to get all cookies and extracting in Selenium Webdriver

Any site can have single or multiple cookies. If you know cookie name then you can get it’s detail easily using getCookieNamed(). But if there are multiple cookies and you need all of them then you need to use getCookies(). Selenium webdriver get cookies will retrieve all cookies of site you are navigating in selenium webdriver test. … Read more

How to use addCookie() and getCookieNamed() in Selenium WebDriver

Selenium webdriver add cookie and selenium webdriver get Cookie Named are very useful methods. Most of all you are already aware about browser cookie. Basically cookie is piece of data that is stored in your browser. It is sent from website you visit and mostly it is used to recognize if user return to website again. … Read more

How to Manage Browser Dimension and Position in Selenium Webdriver

Sometimes you need to set Dimension and Position of your browser window. We have built in selenium dimension class and selenium Position class with many different methods. We can use dimension class in selenium and Position class in selenium and it’s methods to set dimensions and positions of browser window. Let’s see how we can use Dimension and … Read more