I am new to CSS and am trying to avoid using xpath in my Protractor AngularJS test automations. I am trying to get a specific element in the list, which Im getting, however Protractor tells me there are more than one element found for locator. In the future I want to avoid this as I'm not always going to want first on the list. I am slightly confused about CSS and exactly how to get where I'm going and the documentation I have found has been vague. I am trying to grab Marketing Venue element but will also need to grab the other elements beneath as well at some point. The top code is AngularJS and how I am currently grabbing the text. Thanks in advance.
var iPlanLevel=element(by.css("div:nth-of-type(2) > div:nth-of-type(2) > div > div:nth-of-type(1) > span")).getText().then(function (text) {
console.log(text);
}
);
<!-- begin snippet: js hide: false -->
<div class="home-info">
<span class="web-developer-id-class-details"></span>
<div class="home-top home-section"></div>
<span class="web-developer-id-class-details"></span>
<div class="home-bottom home-section">
<h3></h3>
<span class="web-developer-id-class-details"></span>
<div class="home-box">
<span class="web-developer-id-class-details"></span>
<span class="home-name"></span>
<br></br>
Lindemannstrasse 88
<br></br>
Dortmund 44137
<br></br>
<br></br>
<span class="web-developer-id-class-details"></span>
<div class="property-group meduim">
<div></div>
<span>
MarketingVenue
</span>
</div>
<span class="web-developer-id-class-details">
.property-group.meduim
</span>
<div class="property-group meduim">
<div></div>
<span>
December 31, 2016
</span>
</div>
<span class="web-developer-id-class-details"></span>
<div class="property-group meduim"></div>
<div></div>
<br></br>
</div>
<span class="web-developer-id-class-details"></span>
<div class="home-box"></div>
</div>
</div>
MarketingVenuetext? Thanks.