当前位置: 动力学知识库 > 问答 > 编程问答 >

java - unable to tick all the check box under a single page

问题描述:

I am facing problem to apply loop and tick all the check box under a page.

Kindly suggest me to tick all the check box in page.

Please follow the below steps

1. Go to Url "http://kesdee.com/buyOnline.html"

2. Go to dropdown'Course Groups' and select "Bank Branch Management"

3. tick all the check box under 'View Less' link

4. click all the 'View More' links one by one and tick all the check box

Working on selenium Web Driver using java.

I have tried it by using xpath, id's and classname, but unsuccessful.

网友答案:

Try to use selenium.support library.

https://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/support/ui/Select.html

after you can easy do selection of any option from this select. By id, value or index

分享给朋友:
您可能感兴趣的文章:
随机阅读: