本文整理汇总了Java中ru.yandex.qatools.htmlelements.element.Link类的典型用法代码示例。如果您正苦于以下问题:Java Link类的具体用法?Java Link怎么用?Java Link使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Link类属于ru.yandex.qatools.htmlelements.element包,在下文中一共展示了Link类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRepoNames
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
@Step("Get the list of code repository names")
public List<String> getRepoNames() {
return repoLinks.stream()
.map(Link::getText)
.collect(Collectors.toList());
}
示例2: getResultTitles
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
/**
* Uses a stream to lazily iterate through links. We expect the first result
* to be the one we want, using a Stream means we won't have to build an
* entire list which is relatively expensive.
*/
@Step("Get search result titles")
public List<String> getResultTitles() {
return resultTitles.stream()
.map(Link::getText)
.collect(Collectors.toList());
}
示例3: getDownloadableFileLinkNames
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
@Step("Return all download link names")
public List<String> getDownloadableFileLinkNames() {
return allDownloadLinks.stream()
.map(Link::getText)
.collect(Collectors.toList());
}
示例4: findLinkByText
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
private Link findLinkByText(String desiredLinkText) {
return allDownloadLinks.stream()
.filter(link -> desiredLinkText.equals(link.getText()))
.findFirst()
.orElseThrow(() -> new NoSuchElementException(
"All downloads list doesn't contain " + desiredLinkText));
}
示例5: getGoToNewPost
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getGoToNewPost() {
return this.goToNewPost;
}
示例6: getGoToAllPosts
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getGoToAllPosts() {
return this.goToAllPosts;
}
示例7: getGoToAuthors
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getGoToAuthors() {
return this.goToAuthors;
}
示例8: Login
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link Login() {
return this.Login;
}
示例9: SingOut
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link SingOut() {
return this.SingOut;
}
示例10: getReadMoreLink
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getReadMoreLink() {
return this.readMoreLink;
}
示例11: getTitleLink
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getTitleLink() {
return titleLink;
}
示例12: getIndexLink
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getIndexLink() {
return indexLink;
}
示例13: getRegisterLink
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getRegisterLink() {
return registerLink;
}
示例14: getLoginLink
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getLoginLink() {
return loginLink;
}
示例15: getCreatePostLink
import ru.yandex.qatools.htmlelements.element.Link; //导入依赖的package包/类
public Link getCreatePostLink() {
return createPostLink;}