Json handling in ROBOT

The simplest solution would be to write a python keyword that can change the value for you. However, you can solve this with robot keywords by performing the following steps: convert the JSON string to a dictionary modify the dictionary convert the dictionary back to a JSON string Convert the JSON string to a dictionary … Read more

Pass existing Webdriver object to custom Python library for Robot Framework

There’s nothing built into the library to let you do what you want per se. However, you can create your own library that can access selenium features. There are two ways to accomplish this, both which require creating your own library in python. These methods are to to subclass Selenium2Library, or to get a reference … Read more

Mac OSX – IllegalStateException: The driver is not executable:

Quick installation of the latest ChromeDriver To install the latest version of ChromeDriver: Mac users with Homebrew: brew tap homebrew/cask && brew cask install chromedriver Original answered Nov 15 ’17 at 12:04 The error IllegalStateException: The driver is not executable: /Users/roja/Documents/GitHub/testautomation/chromedrivers/chromedriver_osx says it all. You have to make exactly 4 changes as follows : Change … Read more

SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 81

I solved these kinds of problems using the webdrive manager. You can automatically use the correct chromedriver by using the webdrive-manager. Install the webdrive-manager: pip install webdriver-manager Then use the driver in python as follows from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install()) This answer is taken from https://stackoverflow.com/a/52878725/10741023

In a new window with a blank URL, how can you provide a path from which to find relative resources?

I see the imgs are given relative URLs to work with (as they should be). I am not 100% positive what the base URL is for window.open. I don’t know if it’s about:blank, but since the absolute URLs work and the relative ones don’t, I think it’s a safe bet that the browser doesn’t know … Read more