0

Mikrotik chekbox

WebDriver driver = new HtmlUnitDriver();

driver.get("http://192.168.*.*/webfig/#Wireless.Interfaces.6");

driver.findElements(By.cssSelector("#content > table.list > tbody:nth-child(41) > tr > td.label > span));

This is selector from Chrome DevelopMode. How to click on this checkbox?

1
  • Provide your error logs Commented Jun 23, 2017 at 12:52

1 Answer 1

0

Please try the following:

driver.findElement(By.cssSelector("span.checkbox input")).click();

As, span tag has a class attribute .checkbox it can be used as above. We need to click the input tag with type='checkbox'.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.