Working with Input box/Test Box in Selenium with Python Last Updated : 22 Jul, 2024 Comments Improve Suggest changes Like Article Like Report Selenium is an effective device for controlling an internet browser through the program. It is purposeful for all browsers, works on all fundamental OS and its scripts are written in numerous languages i.e Python, Java, C#, etc, we can be running with Python.Working with Input box/Test Box, let us how to:find how many input boxes present in the web page.provide value into text boxes.get the status.Process:Importing the modules.We will load the URL https://gitpress.io/u/1155/selenium-Example2RadioButtonAndCheckBoxes in the driver.Now select the XPath of the desired field by doing:Then find(navigate) the class name where input is present.Find the length using len().Check the status by is_displayed().Implementation: Python # importing the modules from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time # using chrome driver driver = webdriver.Chrome() # web page url driver.get("https://fs2.formsite.com/meherpavan/form2/index.html?1537702596407") # select class name where is input box are present element = driver.find_elements(By.CLASS_NAME, "text_field") # find number of input box print(len(element)) # fill value in input box driver.find_element_by_xpath('//*[@id="RESULT_TextField-1"]').send_keys("praveen") driver.find_element_by_xpath('//*[@id="RESULT_TextField-2"]').send_keys("yadav") driver.find_element_by_xpath('//*[@id="RESULT_TextField-3"]').send_keys("87871111") # check status x = driver.find_element_by_xpath('//*[@id="RESULT_TextField-1"]').is_displayed() print(x) driver.close() Output: Comment More infoAdvertise with us Next Article Working with Input box/Test Box in Selenium with Python praveeny182 Follow Improve Article Tags : Python Software Testing Selenium Python-selenium Practice Tags : python Similar Reads Working with Radio buttons and Check boxes in Selenium with Python Prerequisite: Browser Automation Using Selenium Requirement: You need to install chrome driver and set path. Click here to download. Selenium is an effective device for controlling an internet browser through the program. It is purposeful for all browsers, works on all fundamental OS and its script 1 min read How to switch to new window in Selenium for Python? Selenium is the most used Python tool for testing and automation for the web. But the problem occurs when it comes to a scenario where users need to switch between windows in chrome. Hence, selenium got that cover as well. Selenium uses these methods for this task- window_handles is used for working 3 min read Writing Tests using 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. Through Selenium Python API you can access all functionalities of Selenium WebDriver in an intuitive way. This art 2 min read Get all text of the page using Selenium in Python As we know Selenium is an automation tool through which we can automate browsers by writing some lines of code. It is compatible with all browsers, Operating systems, and also its program can be written in any programming language such as Python, Java, and many more. Selenium provides a convenient A 3 min read Non blocking wait in selenium using Python Prerequisite : Browser Automation Using SeleniumWhen we want to do web automation, we require to wait for some javascript elements to load before we perform some action. For that matter, generally people use Python3 time.sleep(in_seconds) which is a blocking call.By blocking call I mean, it waits or 3 min read Automated Browser Testing with Edge and Selenium in Python Cross-browser testing is mandatory in the software industry. We all know that there are many browsers like Firefox, Chrome, Edge, Opera etc., are available. Rather than writing separate code to each and every browser, it is always a decent approach to go towards automated testing. Let us see how to 5 min read How to access popup login window in selenium using Python Many websites use sign-in using social media to make the login process easy for users. In most cases, if the button is clicked then a new popup window is opened where the user has to enter their user credentials. Manually one can switch windows in a browser and enter the required credentials to log 3 min read Python Selenium - Find Button by text In this article, let's discuss how to find a button by text using selenium. See the below example to get an idea about the meaning of the finding button by text. Example: URL: https://html.com/tags/button/ We need to find the "CLICK ME!" button using the text "Click me!". Module Needed: Selenium: Th 2 min read Click button by text using Python and Selenium Selenium is a tool that provides APIs to automate a web application to aid in its testing. In this article, we discuss the use of Selenium Python API bindings to access the Selenium WebDrivers to click a button by text present in the button. In the following example, we take the help of Chrome. The 2 min read How to simulate pressing enter in HTML text input with Selenium ? Selenium is an inbuilt module available in python that allows users to make automated suites and tests. We can build code or scripts to perform tasks automatically in a web browser using selenium. Selenium is used to test the software by automation. Also, programmers can create automated test cases 3 min read Like