- Selenium Design Patterns and Best Practices
- Dima Kovalenko
- 209字
- 2021-08-05 17:59:43
Comparing Selenium commands in multiple languages
Translating recorded tests from IDE into Ruby is rather simple, and we can get started even if we do not have any previous programming experience; learning as we go works just fine. The most exciting part is that these commands are even easier to translate from Ruby to any other programming language. Here are a couple of examples of the usage of the sendKeys()
method that we used in the preceding example:

The consistency of the WebDriver API makes it incredibly easy to port your knowledge of the test from one language to another. This is great news for you, the test engineer, because you become more valuable to your company. You can be dropped in on any web project, written in any programming language, and start writing tests right away! Information and examples of different WebDriver commands in any programming language can be found at http://docs.seleniumhq.org/docs/.
The preceding example is slightly oversimplified. The action commands are written in the same format from programming language to programming language. However, writing code in different kinds of languages, such as compiled VS interpreted, will have their own idioms and best practices. Some actions that work well in Ruby would be wasteful and counterintuitive in Java.
- Manga Studio Ex 5 Cookbook
- vSphere High Performance Cookbook
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- R語言數(shù)據(jù)可視化實戰(zhàn)
- 零基礎學Java(第4版)
- Python High Performance Programming
- SciPy Recipes
- Java 從入門到項目實踐(超值版)
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- Python高性能編程(第2版)
- The Applied Data Science Workshop
- C語言從入門到精通(第5版)
- Python程序設計現(xiàn)代方法
- Access 2016數(shù)據(jù)庫應用與開發(fā):實戰(zhàn)從入門到精通(視頻教學版)
- Instant SQL Server Analysis Services 2012 Cube Security