This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Find elements with Xpath | |
function getElementsByXPath(xpath, doc) { | |
const iterator = doc.evaluate( | |
xpath, | |
doc, | |
null, | |
4, | |
null | |
);s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testrisk.dictionary.tests | |
import org.junit.Before | |
import org.junit.Test | |
import testrisk.dictionary.pages.DictionaryScreen | |
import testrisk.dictionary.pages.HomeScreen | |
class DictionaryScreenTests : BaseTest() { | |
private var dictionaryScreen = DictionaryScreen() | |
private var homeScreen = HomeScreen() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testrisk.dictionary.tests | |
import androidx.test.ext.junit.runners.AndroidJUnit4 | |
import androidx.test.rule.ActivityTestRule | |
import org.junit.Before | |
import org.junit.Rule | |
import org.junit.runner.RunWith | |
import testrisk.dictionary.MainActivity | |
@RunWith(AndroidJUnit4::class) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testrisk.dictionary.pages | |
import androidx.test.espresso.Espresso | |
import androidx.test.espresso.assertion.ViewAssertions | |
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed | |
import androidx.test.espresso.matcher.ViewMatchers.withId | |
import testrisk.dictionary.R | |
class DictionaryScreen : BaseScreen() { | |
private var recyclerViewSozluk = Espresso.onView(withId(R.id.recyclerView)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testrisk.dictionary.pages | |
import androidx.annotation.IdRes | |
import androidx.test.espresso.Espresso | |
import androidx.test.espresso.ViewInteraction | |
import androidx.test.espresso.matcher.ViewMatchers.withId | |
import androidx.test.platform.app.InstrumentationRegistry | |
import androidx.test.uiautomator.UiDevice | |
import androidx.test.uiautomator.UiSelector | |
import testrisk.dictionary.R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final class HomeViewController: UIViewController { | |
private let networkManager = NetworkManager() | |
// MARK: Properties | |
@IBOutlet weak var dictionaryImg: UIImageView! | |
@IBOutlet var readmeMd: MarkdownView! | |
private var home: Home? { | |
didSet { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HomeScreenTests.swift | |
// TestDictionaryUITests | |
// | |
// Created by MESUT GUNES on 1.08.2021. | |
// Copyright © 2021 MesutGunes. All rights reserved. | |
// | |
import Foundation | |
import XCTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BaseTest.swift | |
// TestDictionaryUITests | |
// | |
// Created by MESUT GUNES on 1.08.2021. | |
// Copyright © 2021 MesutGunes. All rights reserved. | |
// | |
import Foundation | |
import XCTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HomeScreen.swift | |
// TestDictionaryUITests | |
// | |
// Created by MESUT GUNES on 1.08.2021. | |
// Copyright © 2021 MesutGunes. All rights reserved. | |
// | |
import Foundation | |
import XCTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BaseScreen.swift | |
// TestDictionaryUITests | |
// | |
// Created by MESUT GUNES on 1.08.2021. | |
// Copyright © 2021 MesutGunes. All rights reserved. | |
// | |
import Foundation | |
import XCTest |
NewerOlder