Posts

Showing posts from October, 2019

macOS: Preview source code files in Finder with Quick Look plugins

Image
macOS Finder offers a possibility to preview the files of any type without opening them with Quick Look. By default Quick Looksupports most commonly used file formats which may not be enough if you are a developer and you want to preview source code files i.e. Java or Python or any other un-common file types.Quick Look pluginsQuick Look can be extended with plugins to allow previewing the content of any file format. Plugins can also add additional functionality to Quick Look like for example syntax highlighting.The list of freely available Quick Look plugins for developers can be found here: https://github.com/sindresorhus/quick-look-pluginsThe most useful ones from my point of view:Preview files with no extension with QLStephen:brew cask install qlstephenExample: preview .gitignore:Preview Markdown files in Finder with QLMarkdown:brew cask install qlmarkdownExample: preview README.md:Syntax highlighting for source code files with QLColorCodebrew cask install qlcolorcodeExample: previ…

JUnit 5 and Selenium - Using Selenium built-in `PageFactory` to implement Page Object Pattern

Selenium is a set of tools and libraries supporting browser automation and it is mainly used for web applications testing. One of the Selenium’s components is a Selenium WebDriver that provides client library, the JSON wire protocol (protocol to communicate with the browser drivers) and browser drivers. One of the main advantages of Selenium WebDriver is that it supported by all major programming languages and it can run on all major operating systems.In this part of the JUnit 5 with Selenium WebDriver - Tutorial I will go though the implementation of Page Object pattern with Selenium’s built-in PageFactory support class. PageFactory provides mechanism to initialize any Page Object that declares WebElement or List<WebElement> fields annotated with @FindBy annotation.