Skip to content

Commit

Permalink
Should be OK. My test runner was broken
Browse files Browse the repository at this point in the history
  • Loading branch information
proxeter committed May 5, 2014
1 parent 6c722f1 commit 7c95102
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public WebElement getLabel() {
if (id != null) {
// Label with matching "for" attribute
// Trying to find element from !ROOT! node
String xpath = String.format("//descendant-or-self::label[@for = %s]", id);
String xpath = String.format("(//label[@for = %s])[1]", id);
label = findLabel(By.xpath(xpath));
}

Expand All @@ -54,7 +54,7 @@ public WebElement getLabel() {

if (label == null) {
// Label right next to checkbox
label = findLabel(By.xpath("following-sibling::*[1][self::label]"));
label = findLabel(By.xpath("following-sibling::label"));
}

return label;
Expand Down

6 comments on commit 7c95102

@qatools-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Yandex QATools :: Html Elements :: pull-request-build Build 20 [???] is now running

@qatools-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Yandex QATools :: Html Elements :: pull-request-build Build 20 [1.13-SNAPSHOT] outcome was SUCCESS
Summary: Tests passed: 102 Build time: 0:0:0

@qatools-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Yandex QATools :: Html Elements :: pull-request-build Build 30 [???] is now running

@qatools-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Yandex QATools :: Html Elements :: pull-request-build Build 30 [1.13-SNAPSHOT] outcome was SUCCESS
Summary: Tests passed: 102 Build time: 0:0:0

@qatools-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Yandex QATools :: Html Elements :: pull-request-build Build 36 [???] is now running

@qatools-ci
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity Yandex QATools :: Html Elements :: pull-request-build Build 36 [1.13-SNAPSHOT] outcome was SUCCESS
Summary: Tests passed: 102 Build time: 0:0:0

Please sign in to comment.