The Selenium IDE clipboard
Copying snippets through Clipboard Format is one of the quickest ways to obtain instantly generated scripts. Here, a snippet may contain one or two lines of code. The following screenshot displays different types of export formats available under the Clipboard Format option:
Launch the Selenium IDE, hover your mouse over the Clipboard Format option from the Options menu, and select the preferred combination format.
An example of a combination format is Java/JUnit 4/WebDriver. In general, the HTML snippet is set as default. The following screenshot shows a row being copied from the Test Case pane:
Copy the following row from the Test Case pane (as shown in the preceding screenshot) and paste it as a code snippet:
driver.findElement(By.id("gbqfq")).clear(); driver.findElement(By.id("gbqfq")).sendKeys("prashanthsams");