Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Selenium Topics – Page 21 – Make Selenium Easy

Posted on 12/29/2019 By admin

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

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

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

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

Hello Folks, In this post, We will learn about javascript commands which we can use to locate a web element on web page. When to use javascript commands to locate web element? We already have enough locators in Selenium webdriver, which help us in identifying web elements on a web page. But sometimes, these locating strategies … Continue reading Part 6: Usages Of Javascripts In Selenium: Locating WebElements Using JavaScript Commands

Hello folks, In last post we have learnt about executeScript methods of JavascriptExecutor interface. There is another method called executeAsyncScript in JavascriptExecutor interface which is not frequently used. But we must be aware about it usage so that we can use whenever required. First let’s learn what is Synchronous and Asynchronous? In very simple words, Synchronous = Blocking … Continue reading Part 5: Usages Of Javascripts In Selenium: Understanding Method executeAsyncScript Of JavascriptExecutor

Hello folks, In this post, we will learn about method executeScript of JavascriptExecutor interface. JavascriptExecutor interface provides two methods to execute JavaScript commands. executeScript : To execute synchronized JavaScript script commands executeAsyncScript: To execute asynchronous JavaScript commands We will learn about “executeScript ” method in this post. Synatx: java.lang.Object executeScript(java.lang.String script,java.lang.Object… args) As per selenium doc, above method executes JavaScript in the context of … Continue reading Part 4: Usages Of Javascripts In Selenium: Understanding Method executeScript Of JavascriptExecutor

Hello Folks, In this post, I will explain a problem which beginner in selenium may encounter and you don’t know how to resolve it. I have also faced the same issue and after lot of googling , I found the solution. When you try to execute any javascript command, you might see error message as … Continue reading Part 3: Usages Of Javascripts In Selenium: Problem You Might Face While Executing Javascript Commands In Selenium

Hello folks, In previous post, we have learnt why do we need javascript in Selenium webdriver.  In this post we will learn how to run javascript commands in selenium webdriver. Selenium people provides an interface named “JavascriptExecutor”, which provides declaration of two methods as below: Object executeScript(String arg0, Object… arg1); Object executeAsyncScript(String arg0, Object… arg1); … Continue reading Part 2: Usages Of Javascripts In Selenium: How To Run Javascript Commands In Selenium

Hello Folks, We will see series of posts on Usage of JavaScripts in Selenium. Let’s start with basics. What is JavaScript? Definition from JS offical website: “JavaScript (“JS” for short) is a full-fledged dynamic programming language that, when applied to an HTML document, can provide dynamic interactivity on websites.” I hope you should be aware of basic js. If not, you can … Continue reading Part 1: Usages Of Javascripts In Selenium: Why We Need Javascript Commands In Selenium

Uncategorized

Post navigation

Previous Post: Selenium Topics – Page 19 – Make Selenium Easy
Next Post: ScreenCaptures – Make Selenium Easy

Related Posts

REST Assured Tutorial 19 – Default Host And Port in Rest Assured Uncategorized
TestNG Tutorials 36: Can a Test Method Return a Value in TestNG? Uncategorized
October 12, 2018 – Make Selenium Easy Uncategorized
Amod Mahajan, Author at Make Selenium Easy – Page 41 of 41 Uncategorized
api Uncategorized
ransom notes Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark