<commit_before>/**
 * File: LoginPage.java 27.05.2014, 12:33:23, author: mreinhardt
 * 
 * Project: OwnCloud
 *
 * https://www.martinreinhardt-online.de/apps
 */
package de.martinreinhardt.owncloud.webtest.pages;

import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.annotations.Story;
import net.thucydides.core.annotations.WithTag;
import net.thucydides.core.annotations.findby.FindBy;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

import de.martinreinhardt.owncloud.webtest.OwnCloud;
import de.martinreinhardt.owncloud.webtest.util.AbstractPage;
import de.martinreinhardt.owncloud.webtest.util.UITestConstants;

@Story(OwnCloud.Apps.class)
@WithTag("Apps")
@DefaultUrl(UITestConstants.DEFAULT_URL)
public class AdminSettingsPage extends AbstractPage {

	@FindBy(id = "rcAdvancedSettings")
	private WebElement roundcubeAdvancedPanel;

	@FindBy(id = "autoLogin")
	private WebElement rcToogleAutologin;

	@FindBy(id = "rcAdminSubmit")
	private WebElement rcSaveSettings;

	@FindBy(id = "adminmail_success_message")
	private WebElement rcSaveSuccessMessage;

	/**
	 * @param pWebDriver
	 */
	public AdminSettingsPage(final WebDriver pWebDriver) {
		super(pWebDriver);
	}

	public void go_to_roundcube_advancedsettings() {
		click(roundcubeAdvancedPanel);
	}

	public void toggle_roundcube_autologin() {
		click(rcToogleAutologin);
	}

	public void save_roundcube_settings() {
		click(rcSaveSettings);
		element(rcSaveSuccessMessage).waitUntilVisible();
	}
}<commit_msg>Fix UI test<commit_after>/**
 * File: LoginPage.java 27.05.2014, 12:33:23, author: mreinhardt
 * 
 * Project: OwnCloud
 *
 * https://www.martinreinhardt-online.de/apps
 */
package de.martinreinhardt.owncloud.webtest.pages;

import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.annotations.Story;
import net.thucydides.core.annotations.WithTag;
import net.thucydides.core.annotations.findby.FindBy;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

import de.martinreinhardt.owncloud.webtest.OwnCloud;
import de.martinreinhardt.owncloud.webtest.util.AbstractPage;
import de.martinreinhardt.owncloud.webtest.util.UITestConstants;

@Story(OwnCloud.Apps.class)
@WithTag("Apps")
@DefaultUrl(UITestConstants.DEFAULT_URL)
public class AdminSettingsPage extends AbstractPage {

	@FindBy(id = "rcAdvancedSettings")
	private WebElement roundcubeAdvancedPanel;

	@FindBy(id = "autoLogin")
	private WebElement rcToogleAutologin;

	@FindBy(id = "rcAdminSubmit")
	private WebElement rcSaveSettings;

	@FindBy(id = "adminmail_success_message")
	private WebElement rcSaveSuccessMessage;

	/**
	 * @param pWebDriver
	 */
	public AdminSettingsPage(final WebDriver pWebDriver) {
		super(pWebDriver);
	}

	public void go_to_roundcube_advancedsettings() {
		click(roundcubeAdvancedPanel);
	}

	public void toggle_roundcube_autologin() {
		click(rcToogleAutologin);
	}

	public void save_roundcube_settings() {
		click(rcSaveSettings);
		scrollTo(rcSaveSettings);
		element(rcSaveSuccessMessage).waitUntilVisible();
	}
}
{'fraction_non_alphanumeric': 0.10883690708252111, 'fraction_numerical': 0.009096816114359974, 'mean_word_length': 6.296208530805687, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7491822', 'n_tokens_mistral': 1125, 'n_tokens_neox': 1034, 'n_words': 159}