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 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 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 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 Interacting with Webpage - Selenium Python Seleniumâs Python module is designed for automating web testing tasks in Python. It provides a straightforward API through Selenium WebDriver, allowing you to write functional and acceptance tests. To open a webpage, you can use the get() method for navigation. However, the true power of Selenium li 4 min read submit() 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 text 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 Like