Special Keys in Selenium Python Last Updated : 23 Aug, 2021 Comments Improve Suggest changes Like Article Like Report Selenium’s Python Module is built to perform automated testing with Python. Special Keys is an exclusive feature of Selenium in python, that allows pressing keys through keyboard such as ctrl+f, or shift+c+v, etc. class selenium.webdriver.common.keys.Keys handles all Keys in Selenium Python. It contains huge number of key methods one can use in Selenium Python. How to use Special Keys in Selenium Python To demonstrate, Special Keys, let's use key_up method of Action Chains in Selenium Python. This bot visits https://www.geeksforgeeks.org/ and press ctrl+f to open search bar.Program - Python3 # import webdriver from selenium import webdriver # import Action chains from selenium.webdriver.common.action_chains import ActionChains # import KEYS from selenium.webdriver.common.keys import Keys # create webdriver object driver = webdriver.Firefox() # get geeksforgeeks.org driver.get("https://www.geeksforgeeks.org/") # create action chain object action = ActionChains(driver) # perform the operation action.key_down(Keys.CONTROL).send_keys('F').key_up(Keys.CONTROL).perform() Output - Special Keys Various keys that can be used in Selenium Python are - ADDALTARROW_DOWNARROW_LEFTARROW_RIGHTARROW_UPBACKSPACEBACK_SPACECANCELCLEARCOMMANDCONTROLDECIMALDELETEDIVIDEDOWNENDENTEREQUALSESCAPEF1F10F11F12F2F3F4F5F6F7F8F9HELPHOMEINSERTLEFTLEFT_ALTLEFT_CONTROLLEFT_SHIFTMETAMULTIPLYNULLNUMPAD0NUMPAD1NUMPAD2NUMPAD3NUMPAD4NUMPAD5NUMPAD6NUMPAD7NUMPAD8NUMPAD9PAGE_DOWNPAGE_UPPAUSERETURNRIGHTSEMICOLONSEPARATORSHIFTSPACESUBTRACTTAB Comment More infoAdvertise with us Next Article Special Keys in Selenium Python N NaveenArora Follow Improve Article Tags : Python Software Testing Selenium Python-selenium Practice Tags : python Similar Reads Python - Opening links using Selenium Selenium is a powerful tool for controlling the web browser through the program. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python, Java, C#, etc, we will be working with Python. Selenium Python bindings provide a convenient API to a 2 min read Selenium Python Tutorial Selenium is a powerful tool for controlling web browsers through programs and performing browser automation. It is functional for all browsers, works on all major OS and its scripts are written in various languages i.e Python , Java , C# , etc, we will be working with Python. Selenium Tutorial cover 9 min read Web Driver Methods in Selenium Python Seleniumâs Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout â Navigating links using get method â Selenium Python. Just bein 5 min read Selenium Python Basics Selenium is a portable framework for testing web applications. Selenium provides a playback tool for authoring functional tests without the need to learn a test scripting language. Before Going Ahead Please refer to this page if you had not installed Selenium. This article revolves around Locators i 5 min read Python | page_source method in Selenium page_source method is used retrieve the page source of the webpage the user is currently accessing. The main use of this method to find something in the page source like finding any data or keyword. Page source : The source code/page source is the programming behind any webpage. Syntax : driver.page 1 min read title driver method - Selenium Python Seleniumâs Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout â Navigating links using get method â Selenium Python. Just bein 2 min read size element method - Selenium Python Seleniumâs Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout - Navigating links using get method â Selenium Python. Just bein 2 min read Exceptions - Selenium Python Exceptions in Selenium Python are the errors that occur when one of method fails or an unexpected event occurs. All instances in Python must be instances of a class that derives from BaseException. Two exception classes that are not related via subclassing are never equivalent, even if they have the 3 min read Like instagram pictures using Selenium | Python In this article, we will learn how can we like all the pictures of a profile on Instagram without scrolling and manually clicking the buttons. We will be using Selenium to do this task.  Packages/Software needed: 1. Python 3 2. Chromedriver compatible with the existing chrome version (download chr 3 min read Element methods in Selenium Python Seleniumâs Python Module is built to perform automated testing with Python. Selenium in Python works with elements. An element can be a tag, property, or anything, it is an instance of class selenium.webdriver.remote.webelement.WebElement. After you find an element on screen using selenium, you migh 3 min read Like