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
@kumaranmuraleetharan5 жыл бұрын
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.5 жыл бұрын
Please paste URL also , which used for testing in description box .
@sumatoli.5 жыл бұрын
I copied it by the way , pasting it for now fs2.formsite.com/meherpavan/form2/index.html?1537702596407
@cutiepiec28295 жыл бұрын
Thank you
@karishmazsweblog55614 жыл бұрын
thanks bro
@shorya816 жыл бұрын
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 ..
@moazelsawaf20005 жыл бұрын
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")
@pgilecki4 жыл бұрын
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")
@prabur32965 жыл бұрын
Why are we using Len keyword? Is there no count?
@sdetpavan5 жыл бұрын
No Count.
@codeb3nder8625 жыл бұрын
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
@prrout1364 жыл бұрын
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 ............ .
@ncg51624 жыл бұрын
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