Handle JQuery Multi Select Drop Down (Interview Question) - Selenium Python - Part 5

  Рет қаралды 13,738

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

In this video, I have explained how to handle multi select Jquery drop down using selenium-python library.
Learn:
-- how to create a generic function for drop downs.
-- how to handle single select, multi select and all selection for drop downs.

Пікірлер: 21
@alexeyk8680
@alexeyk8680 2 жыл бұрын
for k in range(len(value)): if ele.text == value[k]: ele.click() -> if ele.text in value: ele.click() - you don't need iteration over value-list, just use "in"
@tempa-l4f
@tempa-l4f 4 жыл бұрын
I just don't get it that how can someone dislike this video. Amazingly explained Naveen, keep helping all of us by making such videos. Thank you so much :)
@anushapattan9638
@anushapattan9638 4 жыл бұрын
You are the True inspiration for learners..
@ashuiet
@ashuiet 4 жыл бұрын
Superb explanation everything is clear about ...how to create Drop-Down list for Multi Selection.This question was asked me one of the interview at time I could not give them such a answer which can satisfied to the panel. Thanks Naveen !!
@vikrantshingne8761
@vikrantshingne8761 3 жыл бұрын
Superlike for the way you teach us . And generic method 👍 . In this generic method just change drop_list to optionlist in generic method line no 11 Correct me if I am wrong 🙏 Thank you again Naveen
@sovsrick
@sovsrick 4 жыл бұрын
Hi Naveen, in my case "for loop" only prints the first value from drop down and exits, it doesn't move forward and print all values available on drop down menu. What would be the solution to this.
@Psudeep
@Psudeep 4 жыл бұрын
Nice tutorial, i never see anywhere these details
@karthikpatil9509
@karthikpatil9509 4 жыл бұрын
Superb explanation Naveen,I loved it
@samkitshah616
@samkitshah616 2 жыл бұрын
One question. What happens when someone pass empty list. I tried in my code and I got "list index out of range" exception. How can we handle that?
@mahak64
@mahak64 3 жыл бұрын
when i am trying to use all options to check all the checkboxes ,the selection stops at option 4 giving exception that after option 4 - is not clickable at point (508, 527) , the window is showing only till option 4 and the code is not able to scroll down.
@aswinkumar594
@aswinkumar594 4 жыл бұрын
can we some sample websites practice the JQuery select options?
@anushapattan9638
@anushapattan9638 4 жыл бұрын
Welcome back
@sakthivelperiyasamy636
@sakthivelperiyasamy636 4 жыл бұрын
I am looking for Selenium Automation course. Please share fee s details
@XboxPlayShorts
@XboxPlayShorts 4 жыл бұрын
Great work 👍🏼
@gauravgupta1012
@gauravgupta1012 4 жыл бұрын
@6 if CSS is finding 45 elements then why it printing only 15?? why not for other dropdown option printing?
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
Because they are hidden and have no text.
@gauravgupta1012
@gauravgupta1012 4 жыл бұрын
@@naveenautomationlabs Thanks for quick reply .. Got it :)
@amblessed_onwumere
@amblessed_onwumere 4 жыл бұрын
@@naveenautomationlabs I think the code for the multiple drop down could be shortened to import time from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager def select_values(options_list, value): for element in options_list: if element.text in value: element.click() driver = webdriver.Chrome(ChromeDriverManager().install()) driver.implicitly_wait(6) driver.get("www.jqueryscript.net/demo/Drop-Down-Combo-Tree/") driver.maximize_window() time.sleep(4) driver.find_element_by_id("justAnInputBox").click() time.sleep(3) drop_list = driver.find_elements_by_css_selector("span.comboTreeItemTitle") values_list: list = ["choice 2", "choice 3", "choice 6 2 1"] select_values(drop_list, values_list) time.sleep(6) The above code works perfectly fine
@sayantanbasu1579
@sayantanbasu1579 3 жыл бұрын
@@amblessed_onwumere how to write this in java
@aldomaximilianosandovalbra8935
@aldomaximilianosandovalbra8935 2 ай бұрын
This xpath get only the elements from multi selection drop_list = driver.find_elements(By.XPATH, '//h3[text()="Multi Selection"]/..//span[@class="comboTreeItemTitle"]')
ImplicitlyWait - Dynamic Wait in Selenium - Python - Part 11
20:44
Naveen AutomationLabs
Рет қаралды 8 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 199 МЛН
Одну кружечку 😂❤️
00:12
Денис Кукояка
Рет қаралды 1,3 МЛН
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 4,9 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 7 МЛН
Select Drop Down Values in Selenium Python - Part 4
26:18
Naveen AutomationLabs
Рет қаралды 26 М.
jQuery Tutorial 25: Creating A Dropdown Menu In jQuery
16:17
Mehul - Codedamn
Рет қаралды 49 М.
Execute Javascript using Selenium Python - Part 13
34:36
Naveen AutomationLabs
Рет қаралды 12 М.
Selenium Python Tutorial #28 - How to handle Dropdown in Selenium
14:19
Software Testing Mentor
Рет қаралды 34 М.
Multi Select Drop Down | Selenium WebDriver
4:47
senior QA
Рет қаралды 728
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 199 МЛН