I have worked on CSS selectors to find an element while using selenium webdriver, but finding the element for below div seems to be difficult.
<div class="class1 class2" dd:btnfloatingstyle="top-right" dd:entitytexttype="resultval" id="_78891a36-3d75-432e-9906-760bd918e7cb" contenteditable="true"></div>
For finding an element using css selector I usually do:
$driver.find_elements(:css, 'div.classname')
But I have 2 class names in this case and I don't get the element back while I do:
$driver.find_elements(:css, 'div.class1 class2') or
$driver.find_elements(:css, 'div.class1 > div.class2') or
$driver.find_elements(:css, 'div.class1 + div.class2')
Am I missing something or is there any other way I can find this element??