java - In Selenium Webdriver how to handle this kind of multi select dropdown which contains checkbox -


I have a snapdown as shown in the picture below

 Enter the image details here

I need to handle multilevel by clicking on the checkbox related to the name. I need data- I'm using the schematic. I'm bringing data from excel. Now I have written the code to click on the arrow in the drop down and then click on the respective checkbox Do it. In order to handle many selections like this I need a better solution. 1) Click the arrow on the drop down, the drop down list will open.

1)

2) Take the entire drop down list into a Webelement.

3) Create a web analytics list under the above WebElement, where the tag name is equal to "tr" / "li" (your html code). Now there are all the multilevel entries in the drop down list.

4) Get the text of every Web element in the above web analytics list.

5) Read the data from Excel.

6) Where the data from the point (4) & amp; Point (5) is the same, click on the respective check box using XPATH.

If you need more clarification after the source of the drop down. Or give any web address of the same type of drop down.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -