<commit_before>package org.jboss.hal.testsuite.page.config;

import org.jboss.arquillian.graphene.Graphene;
import org.jboss.arquillian.graphene.findby.ByJQuery;
import org.jboss.arquillian.graphene.page.Location;
import org.jboss.hal.testsuite.finder.FinderNames;
import org.jboss.hal.testsuite.finder.FinderNavigation;
import org.jboss.hal.testsuite.fragment.ConfigFragment;
import org.jboss.hal.testsuite.fragment.config.socketbindings.InboundSocketBindingFragment;
import org.jboss.hal.testsuite.page.ConfigPage;
import org.jboss.hal.testsuite.page.Navigatable;
import org.jboss.hal.testsuite.util.PropUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

/**
 * @author mkrajcov <<EMAIL>>
 */
@Location("#socket-bindings;name=standard-sockets")
public class StandardSocketBindingsPage extends ConfigPage implements Navigatable {

    private static final By CONTENT_ROOT = ByJQuery.selector("." + PropUtils.get("page.content.rhs.class") + ":visible");

    public InboundSocketBindingFragment switchToInbound() {
        return switchTo(InboundSocketBindingFragment.class, "Inbound");
    }

    public ConfigFragment switchToOutboundRemote() {
        return switchTo("Outbound Remote");
    }

    public ConfigFragment switchToOutboundLocal() {
        return switchTo("Outbound Local");
    }

    private ConfigFragment switchTo(String label) {
        return switchTo(ConfigFragment.class, label);
    }
    private <T extends ConfigFragment> T switchTo(Class<T> clazz, String label) {
        switchSubTab(label);
        WebElement root = getContentRoot().findElement(CONTENT_ROOT);
        return Graphene.createPageFragment(clazz, root);
    }

    @Override
    public void navigate() {
        new FinderNavigation(browser, StandaloneConfigEntryPoint.class)
                .addAddress(FinderNames.CONFIGURATION, "Socket Binding")
                .selectRow().invoke(FinderNames.VIEW);
        getResourceManager().viewByName("standard-sockets");
    }
}<commit_msg>Fixed missing waiting in StandardSocketBindingsPage<commit_after>package org.jboss.hal.testsuite.page.config;

import org.jboss.arquillian.graphene.Graphene;
import org.jboss.arquillian.graphene.findby.ByJQuery;
import org.jboss.arquillian.graphene.page.Location;
import org.jboss.hal.testsuite.finder.Application;
import org.jboss.hal.testsuite.finder.FinderNames;
import org.jboss.hal.testsuite.finder.FinderNavigation;
import org.jboss.hal.testsuite.fragment.ConfigFragment;
import org.jboss.hal.testsuite.fragment.config.socketbindings.InboundSocketBindingFragment;
import org.jboss.hal.testsuite.page.ConfigPage;
import org.jboss.hal.testsuite.page.Navigatable;
import org.jboss.hal.testsuite.util.PropUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

/**
 * @author mkrajcov <<EMAIL>>
 */
@Location("#socket-bindings;name=standard-sockets")
public class StandardSocketBindingsPage extends ConfigPage implements Navigatable {

    private static final By CONTENT_ROOT = ByJQuery.selector("." + PropUtils.get("page.content.rhs.class") + ":visible");

    public InboundSocketBindingFragment switchToInbound() {
        return switchTo(InboundSocketBindingFragment.class, "Inbound");
    }

    public ConfigFragment switchToOutboundRemote() {
        return switchTo("Outbound Remote");
    }

    public ConfigFragment switchToOutboundLocal() {
        return switchTo("Outbound Local");
    }

    private ConfigFragment switchTo(String label) {
        return switchTo(ConfigFragment.class, label);
    }
    private <T extends ConfigFragment> T switchTo(Class<T> clazz, String label) {
        switchSubTab(label);
        WebElement root = getContentRoot().findElement(CONTENT_ROOT);
        return Graphene.createPageFragment(clazz, root);
    }

    @Override
    public void navigate() {
        new FinderNavigation(browser, StandaloneConfigEntryPoint.class)
                .addAddress(FinderNames.CONFIGURATION, "Socket Binding")
                .selectRow().invoke(FinderNames.VIEW);
        Application.waitUntilVisible();
        getResourceManager().viewByName("standard-sockets");
    }
}
{'fraction_non_alphanumeric': 0.10716871832005793, 'fraction_numerical': 0.0, 'mean_word_length': 4.409921671018277, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6965390', 'n_tokens_mistral': 1258, 'n_tokens_neox': 1207, 'n_words': 203}