Not able to check 2nd checkbox. Getting org.openqa.selenium.WebDriverException

15 views
Skip to first unread message

Bishnu Prasad

unread,
Dec 1, 2016, 8:41:02 AM12/1/16
to Selenium Users

I am getting WebDriverException while trying to select the 2nd checkbox in the list. I am able to select the 1st check box but on the 2nd time when i am calling my method, the code throwing exception. Please find the method that i am using and exception message below. Note: Any suggestion will be helpful for me.

URL: https://www.snapdeal.com/products/computers-external-hard-drives?so...

Note: Required Capacity i am passing from main(). Lets say we want select 1 TB and 2 TB, then i am call the below method two time with parameter as String value.


Please find the attached method that i using to select checkbox and exception message that i getting now.

CapacitySelect.txt
Exception.txt

R Kumar

unread,
Dec 2, 2016, 12:31:32 PM12/2/16
to Selenium Users
use list index.
Reply all
Reply to author
Forward
0 new messages