Selenium with Python Tutorial 8-Working with Input box/Test Box

  Рет қаралды 41,633

SDET- QA

SDET- QA

Күн бұрын

Пікірлер: 17
@amirsiddiqui6256
@amirsiddiqui6256 5 жыл бұрын
plz tell me that i am testing a website in angular js how can i test the text fields because it is not giving right xpath and css selector , and also not accepting class id and class name for a registration form
@kumaranmuraleetharan
@kumaranmuraleetharan 5 жыл бұрын
I don't see an inspect option if I right click! Is there a work around for flash applications on browser? Unfortunately, all the text boxes and drop down menus in the site are flash :(
@sumatoli.
@sumatoli. 5 жыл бұрын
Please paste URL also , which used for testing in description box .
@sumatoli.
@sumatoli. 5 жыл бұрын
I copied it by the way , pasting it for now fs2.formsite.com/meherpavan/form2/index.html?1537702596407
@cutiepiec2829
@cutiepiec2829 5 жыл бұрын
Thank you
@karishmazsweblog5561
@karishmazsweblog5561 4 жыл бұрын
thanks bro
@shorya81
@shorya81 6 жыл бұрын
Sir ..could you pls tell me how can i enter all the text box value by iterating loop .. i dont want to write xpath for every text box and its id . ex:- Total_inputboxes = objBrowser.find_elements_by_xpath("//input[@class='text_field']") print(len(Total_inputboxes)) for i in Total_inputboxes: objBrowser.find_element_by_xpath("(//input[@class='text_field'])").send_keys("hi") like we use to do childobjects in QTP and then through for loop enter the value on every box ..
@moazelsawaf2000
@moazelsawaf2000 5 жыл бұрын
why you are searching for the element again when you already have it in the list, i mean this line of your code : objBrowser.find_element_by_xpath("(//input[@class='text_field'])").send_keys("hi") This line should instead be like this : i.send_keys("hi")
@pgilecki
@pgilecki 4 жыл бұрын
inputboxes = driver.find_elements(By.CLASS_NAME, "text_field") number = int(len(inputboxes))+1 for i in range(1, number): text_field = "RESULT_TextField-"+str(i) driver.find_element_by_id(text_field).send_keys("hi")
@prabur3296
@prabur3296 5 жыл бұрын
Why are we using Len keyword? Is there no count?
@sdetpavan
@sdetpavan 5 жыл бұрын
No Count.
@codeb3nder862
@codeb3nder862 5 жыл бұрын
find_elements method returns a list. For list the count method is used to know the occurrences of a particular element. But len() is a built-in function that is used to find the length of any sequential data type
@prrout136
@prrout136 4 жыл бұрын
Hi Brooo..your lecture is so nice..I am getting same error in from your Wait command tutorial please check. self.error_handler.check_response(response) File "C:\Users\bsnln\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver emote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".inputtext _58mg _5dba _2ph-"} (Session info: chrome=83.0.4103.61) Please reply ............ .
@ncg5162
@ncg5162 4 жыл бұрын
this is the url he used>>>> fs2.formsite.com/meherpavan/form2/index.html?1537702596407 originally posted by Sumit Mote, posting again for easy finding edit1: there are 6 text boxes now
@travel_reveal8528
@travel_reveal8528 2 жыл бұрын
Thankyou
@travel_reveal8528
@travel_reveal8528 2 жыл бұрын
Thankyou
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Selenium Python | How to use PyTest
16:36
Automation Step by Step
Рет қаралды 80 М.
Selenium with Python Tutorial 15- Working with HTML/Web Table
18:49
Fluent Wait in Selenium Python (Selenium Python)
9:46
QAFox
Рет қаралды 1,3 М.
Selenium Python Exception Handling | Selenium Python Tutorial
12:49
SDET Unicorns by Dilpreet Johal
Рет қаралды 9 М.
Selenium WebDriver with Python tutorial 13 - Find Broken Links using Selenium WebDriver
11:41
Testing Funda by Zeeshan Asghar
Рет қаралды 1,1 М.
Python With Selenium Part 14: How to Handle Text box Field | Input Box Field
9:11
Selenium Python Tutorial #42 - Implicit Wait in Selenium Python
7:52
Software Testing Mentor
Рет қаралды 9 М.