Trying to understand how to convert this Xpath to CSS locator.
//div[@id='State']//input[@class='state-dropdown list']
//div[@id='State']//input[@class='state-dropdown list']
The valid cssSelector for this xpath would be :-
div#State input.state-dropdown.list
CSS #id Selector use to locate an element with their id attribute value
CSS element element Selector use to locate element that is inside paranet element. In your case, cssSelector would be locate <input> elements that would be inside <div> element.
CSS .class Selector use to locate an element with their class attribute value
Try with:
div#State * > input.state-dropdown.list
For more reference follow the link: