Why And How Should We Terminate Browser Driver Executable File In Selenium WebDriver

Hello People, Some days ago, I was running my regression automation suite and found webdriver is not able to launch browser. I was getting some socket exception. Whenever I face such situation, I just try to update browser version, browser driver version and selenium jar file version. Versioning non-compatibility is major issue in Selenium for … Continue reading Why And How Should We Terminate Browser Driver Executable File In Selenium WebDriver

Part 13: Usages Of Javascripts In Selenium : How JavaScript Helps In Uploading File In Selenium And Protractor

Hello Folks, In last post, we learnt how to upload a file using selenium webdriver. In this post , we will learn how JavaScript can help you in uploading a file when selenium webdriver fails to do so. I was working on an angular application where I need to upload a profile picture. I was … Continue reading Part 13: Usages Of Javascripts In Selenium : How JavaScript Helps In Uploading File In Selenium And Protractor

Part 12: Usages Of Javascripts In Selenium : How To Type In Input Box Using Javascript

Hello Folks, It is asked in interviews sometimes about alternative of sendKeys() method in selenium webdriver. We will see the same thing here. Javascript is the alternative for sendKeys method. First basic question why we would require alternative of sendKeys? You must have encountered some text box which is nested and selenium is not able … Continue reading Part 12: Usages Of Javascripts In Selenium : How To Type In Input Box Using Javascript

Part 11: Usages Of Javascripts In Selenium : How To Scroll To Any WebElement In Selenium WebDriver

Hello Folks, In previous posts, we have seen scrolling a page by pixels using scroll, scrollTo or scrollBy methods. All these methods accept co-ordinates. These co-ordinates must be known in advance to scroll perfectly which is not possible all the times. If your script is running at different screen sizes, you can not use same … Continue reading Part 11: Usages Of Javascripts In Selenium : How To Scroll To Any WebElement In Selenium WebDriver

Part 10: Usages Of Javascripts In Selenium: How To Capture Screenshot Of Entire Web Page

Hello Folks, When we capture screenshot using "TakesScreenshot" interface in selenium webdriver, it captures only visible area of webpage in browser, not entire web page. Sometimes, you need to capture entire web page for test result proof or for validation at later stage. In this post, I will explain how can we capture a web … Continue reading Part 10: Usages Of Javascripts In Selenium: How To Capture Screenshot Of Entire Web Page

Part 9: Usages Of Javascripts In Selenium: How To Scroll Page By Page In Selenium WebDriver Using Javascript

Hello Folks, In last post, we have learnt to scroll a web page by pixels. In this post, we will see how to scroll a web page , page by page. What is page in Web page? Follow below steps: Open browser and load url "http://www.makeseleniumeasy.com/". Wait till page is loaded. Now press Key "Page … Continue reading Part 9: Usages Of Javascripts In Selenium: How To Scroll Page By Page In Selenium WebDriver Using Javascript

Part 8: Usages Of Javascripts In Selenium: How To Scroll Web Page In Selenium WebDriver Using Javascript

Hello Folks, In last post, we learnt about methods of Javascript which are used to scroll a web page. In this post, we will see usage of those methods in selenium webdriver. Scroll web page using scrollTo method: Selenium webdriver provides an inbuilt method called executeScript to execute any javascript command. We will use same methods … Continue reading Part 8: Usages Of Javascripts In Selenium: How To Scroll Web Page In Selenium WebDriver Using Javascript

Part 7: Usages Of Javascripts In Selenium: Difference Among ScrollBy, ScrollTo and Scroll Methods Of Javascript

Hello Folks, While automating, you may encounter issues as below: Element is not clickable, other element would receive click. Screenshot of required web element is not captured. Element is not visible while element is present in DOM. Unable to capture screen of whole web page vertically or horizontally. All these problems could be solved using … Continue reading Part 7: Usages Of Javascripts In Selenium: Difference Among ScrollBy, ScrollTo and Scroll Methods Of Javascript