How to improve Selenium automation projects with Javascript

You are probably thinking:

Another ebook about Selenium WebDriver?

Are there not enough of them already?

You are right.

There are indeed so many Selenium tutorials, blogs, articles available online.

Some of them good, others not so good.

 

Why do I think that I can do better?

First, the vast majority of Selenium blogs, tutorials,  ebooks focus only on the basics of Selenium:

  • what Selenium is
  • how to find an element
  • how to click an element
  • how to synchonize the test with the site
  • how to use an iframe.

 

Not many tutorials and ebooks cover more advanced Selenium topics.

Even less of them include code that is complete and similar to real automation code.

Because, lets be honest, this is what a beginner in automation needs.

First, he needs to understand how simple things are done.

Then, he needs to see how real code looks like.

You get all of these in my ebook:

  • detailed discussion about how Selenium automation projects can be improved with Javascript; this includes
    1. how to find elements with Javascript
    2. how to interact with elements using Javascript
    3. how to create a custom driver class that can find elements using both By and CSS locators
    4. how to create a JSElement class that interacts with elements only through Javascript
    5. how to find elements using jQuery
  • detailed and complete project code
  • detailed explanations of the code

 

cover

Is the ebook free?

Personally, I like free content and provide lots of it on quora.com.

Also, on my blogs:

seleniumjava.com

test-able.blogspot.ca

seleniumtipsandtricks.quora .com

 

Sometimes on LinkedIn.com.

 

But this is not a free ebook (see a preview here) because creating a good-quality tutorial takes a lot of time.

It is also not expensive.

There are 9 chapters in it so I only ask for USD 1 per chapter.

After taxes, I probably keep just USD 5 for myself.

 

If all these sound good and you want this ebook, please pay USD 9 to alex@alexsiminiuc.com through PayPal.

I will reply with the pdf of the ebook.

Many thanks and good luck with your automation learning,

Alex

 

 

10 Comments

  1. I have read this book and found it very useful.
    Clear, detailed and novice-friendly presentation of JavaScript in Selenium projects.
    Can be used as valuable handbook. Thanks to author for excellent book.

    Like

    Reply

  2. Hi,
    i found this very useful. But have a clarification as am planning to work on POC next week for a UWP app.
    Am trying to identify and type a value in the textbox of UWP app using JavascriptExecutor in the code.

    Below is my code:
    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(“app”, “**********************!App”); // Its a UWP app
    capabilities.setCapability(“platformName”,”Windows”);
    capabilities.setCapability(“deviceName”, “WindowsPC”);
    RemoteWebDriver driver = new RemoteWebDriver(new URL(http://127.0.0.1:4723“)
    JavascriptExecutor js = (JavascriptExecutor) driver;
    String typeUsername=”document.querySelector(‘.username-input’).value=’xxxxx'”;
    js.executeScript(typeUsername);

    But it doesn’t work. Throws the below exception
    Exception in thread “main” org.openqa.selenium.WebDriverException: Command not implemented: POST: /session/

    Any idea… ?

    If this works am planning to implement the same “Selenium auotmation with Javascript” concept to work on my project. Please guide me

    Like

    Reply

  3. //There is a small correction in the below line from my previous comment
    driver = new RemoteWebDriver(new URL(Constants.WindowsApplicationURL),capabilities);

    Like

    Reply

  4. Hi I want to buy your ebooks to learn. I find it very useful. Can you please let me know, is there any offer i can get if I buy them in bundle. I already read the Kindle ebooks. I am a student and If I could get a discount it will be great. Thanks.

    Like

    Reply

Leave a reply to Alex Siminiuc Cancel reply