Skip to content

Commit

Permalink
#389 Support More Complex CSS Selectors
Browse files Browse the repository at this point in the history
Move logger.
  • Loading branch information
briemla committed Nov 25, 2019
1 parent b1d74f1 commit 792a196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@
import org.slf4j.LoggerFactory;

import de.retest.recheck.ui.descriptors.Element;
import de.retest.web.selenium.TestHealer;

public class PredicateBuilder {

private static final Logger logger = LoggerFactory.getLogger( TestHealer.class );
private static final Logger logger = LoggerFactory.getLogger( PredicateBuilder.class );

private final List<Transformer> selectors;
private final List<Predicate<Element>> predicates;
Expand Down
3 changes: 2 additions & 1 deletion src/test/java/de/retest/web/selenium/TestHealerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import de.retest.recheck.ui.descriptors.RootElement;
import de.retest.recheck.ui.descriptors.StringAttribute;
import de.retest.web.AttributesUtil;
import de.retest.web.selenium.css.PredicateBuilder;

class TestHealerTest {

Expand Down Expand Up @@ -145,7 +146,7 @@ public void empty_selectors_should_not_throw_exception() {
public void not_yet_implemented_ByCssSelector_should_be_logged() {
final ListAppender<ILoggingEvent> listAppender = new ListAppender<>();
listAppender.start();
((Logger) LoggerFactory.getLogger( TestHealer.class )).addAppender( listAppender );
((Logger) LoggerFactory.getLogger( PredicateBuilder.class )).addAppender( listAppender );
final List<ILoggingEvent> logsList = listAppender.list;

assertThat( findElement( By.cssSelector( ".open > .dropdown-toggle.btn-primary" ), wrapped ) ).isNull();
Expand Down

0 comments on commit 792a196

Please sign in to comment.