<commit_before>package com.thoughtworks.selenium.corebased;

import com.thoughtworks.selenium.InternalSelenseTestBase;
import org.junit.Test;

public class TestSelect extends InternalSelenseTestBase {
	@Test public void testSelect() throws Exception {
		selenium.open("../tests/html/test_select.html");
		assertTrue(selenium.isSomethingSelected("theSelect"));
		assertEquals(selenium.getSelectedLabel("theSelect"), "Second Option");;
		selenium.select("theSelect", "index=4");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fifth Option");
		verifyEquals(selenium.getSelectedIndex("theSelect"), "4");;
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fifth Option");
		verifyEquals(join(selenium.getSelectedLabels("theSelect"), ','), "Fifth Option");
		selenium.select("theSelect", "Third Option");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Third Option");;
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Third Option");;
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Third Option");
		selenium.select("theSelect", "label=Fourth Option");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fourth Option");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fourth Option");;<commit_msg>SimonStewart: Deleting an unused semi-colon. No logical change<commit_after>package com.thoughtworks.selenium.corebased;

import com.thoughtworks.selenium.InternalSelenseTestBase;
import org.junit.Test;

public class TestSelect extends InternalSelenseTestBase {
	@Test public void testSelect() throws Exception {
		selenium.open("../tests/html/test_select.html");
		assertTrue(selenium.isSomethingSelected("theSelect"));
		assertEquals(selenium.getSelectedLabel("theSelect"), "Second Option");;
		selenium.select("theSelect", "index=4");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fifth Option");
		verifyEquals(selenium.getSelectedIndex("theSelect"), "4");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fifth Option");
		verifyEquals(join(selenium.getSelectedLabels("theSelect"), ','), "Fifth Option");
		selenium.select("theSelect", "Third Option");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Third Option");;
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Third Option");;
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Third Option");
		selenium.select("theSelect", "label=Fourth Option");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fourth Option");
		verifyEquals(selenium.getSelectedLabel("theSelect"), "Fourth Option");;
{'fraction_non_alphanumeric': 0.14960629921259844, 'fraction_numerical': 0.0015748031496062992, 'mean_word_length': 9.164, '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': '5281587', 'n_tokens_mistral': 810, 'n_tokens_neox': 711, 'n_words': 118}