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

import org.jboss.arquillian.graphene.page.Location;
import org.jboss.hal.testsuite.fragment.config.datasource.DatasourceConfigArea;
import org.jboss.hal.testsuite.fragment.config.datasource.DatasourceWizard;
import org.jboss.hal.testsuite.page.ConfigPage;

/**
 * Created by jcechace on 22/02/14.
 */

@Location("#datasources")
public class DatasourcesPage extends ConfigPage {
    @Override
    public DatasourceConfigArea getConfig() {
        return getConfig(DatasourceConfigArea.class);
    }

    public DatasourceWizard addResource() {
        return addResource(DatasourceWizard.class);
    }

    public void switchToXA() {
        switchTab("XA Datasources");
    }<commit_msg>Updated switchToXA() method to work with DR6 navigation<commit_after>package org.jboss.hal.testsuite.page.config;

import org.jboss.arquillian.graphene.page.Location;
import org.jboss.hal.testsuite.fragment.config.datasource.DatasourceConfigArea;
import org.jboss.hal.testsuite.fragment.config.datasource.DatasourceWizard;
import org.jboss.hal.testsuite.util.Console;

/**
 * Created by jcechace on 22/02/14.
 */

@Location("#profiles/ds-finder")
public class DatasourcesPage extends ConfigurationPage {
    @Override
    public DatasourceConfigArea getConfig() {
        return getConfig(DatasourceConfigArea.class);
    }

    public DatasourceWizard addResource() {
        return addResource(DatasourceWizard.class);
    }

    public void switchToXA() {
        select("XA");
        Console.withBrowser(browser).waitUntilLoaded();
    }
{'fraction_non_alphanumeric': 0.10628930817610063, 'fraction_numerical': 0.008176100628930818, 'mean_word_length': 4.268211920529802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4556676', 'n_tokens_mistral': 526, 'n_tokens_neox': 488, 'n_words': 81}