<commit_before>package com.codeborne.selenide.integrationtests;

import com.codeborne.selenide.DOM;
import com.codeborne.selenide.Navigation;
import org.junit.Test;
import org.openqa.selenium.By;

import static com.codeborne.selenide.DOM.*;
import static com.codeborne.selenide.DOM.getSelectedText;
import static com.codeborne.selenide.DOM.getSelectedValue;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

public class PageWithoutJQuery {
  @Test
  public void worksForPagesWithoutJQuery() {
    Navigation.navigateToAbsoluteUrl("http://www.rambler.ru"); // TODO Use something like localhost:8080/nojquery
    assertFalse(DOM.isJQueryAvailable());
    selectOption(By.xpath("//select[@name='domain']"), "myrambler.ru");
    assertEquals("myrambler.ru", getSelectedValue(By.xpath("//select[@name='domain']")));
    assertEquals("@myrambler.ru", getSelectedText(By.xpath("//select[@name='domain']")));

    selectOptionByText(By.xpath("//select[@name='domain']"), "@autorambler.ru");
    assertEquals("autorambler.ru", getSelectedValue(By.xpath("//select[@name='domain']")));
    assertEquals("@autorambler.ru", getSelectedText(By.xpath("//select[@name='domain']")));

    // TODO Test all methods on this page
  }
}<commit_msg>removed unused imports<commit_after>package com.codeborne.selenide.integrationtests;

import com.codeborne.selenide.DOM;
import com.codeborne.selenide.Navigation;
import org.junit.Test;
import org.openqa.selenium.By;

import static com.codeborne.selenide.DOM.*;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;

public class PageWithoutJQuery {
  @Test
  public void worksForPagesWithoutJQuery() {
    Navigation.navigateToAbsoluteUrl("http://www.rambler.ru"); // TODO Use something like localhost:8080/nojquery
    assertFalse(DOM.isJQueryAvailable());
    selectOption(By.xpath("//select[@name='domain']"), "myrambler.ru");
    assertEquals("myrambler.ru", getSelectedValue(By.xpath("//select[@name='domain']")));
    assertEquals("@myrambler.ru", getSelectedText(By.xpath("//select[@name='domain']")));

    selectOptionByText(By.xpath("//select[@name='domain']"), "@autorambler.ru");
    assertEquals("autorambler.ru", getSelectedValue(By.xpath("//select[@name='domain']")));
    assertEquals("@autorambler.ru", getSelectedText(By.xpath("//select[@name='domain']")));

    // TODO Test all methods on this page
  }
}
{'fraction_non_alphanumeric': 0.16639209225700163, 'fraction_numerical': 0.0032948929159802307, 'mean_word_length': 6.081632653061225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3837944', 'n_tokens_mistral': 757, 'n_tokens_neox': 760, 'n_words': 112}