Which function of By class should be used in mod13->Excercis | Selenium Forum
M
Posted on 20/12/2015
Excercise on module 13->http://www.jobserve.com/

By.------? [ which method of By class should be used in this excercise?]
As i need to check 'Engineering' checkbox,but checkbox don't have text name to use By.PartialtextName() or By.TextName().

What By.-------? function should be used in this case to locate the checkbox appropriately?

M
Replied on 20/12/2015

you can use by.Partial name

or xpath try this it might work(i'm not sure try it, if it doesn't then use partial name)

//*[@id="ddcl-selInd-ddw"]/div/div[10]/label