This file contains 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
DB: rule_values | |
_FEATURES_ | |
- Remove corpse retrieving | |
- Remove experience loss upon death | |
- Remove unmemorize spells upon death | |
- Higher HP/MANA/STA regen | |
- Soul bind anywhere | |
- Reduce NPC running away at low HP | |
- Higher hit chance |
This file contains 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
/* eslint-disable no-shadow */ | |
/* eslint-disable no-await-in-loop */ | |
import puppeteer from 'puppeteer' | |
import LoggerManager from '../shared/log.manager' | |
// eslint-disable-next-line max-lines-per-function | |
describe('Check duplicated requests and console errors', () => { | |
let browser, page, logger | |
let testName = 'duplicatedRequests' |
This file contains 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
import fs from 'fs' | |
const fse = require('fs-extra') | |
const chalk = require('chalk') | |
const log = console.log | |
class LoggerManager { | |
constructor(page, reportFileName) { | |
this._page = page | |
this._reportFileName = reportFileName | |
this._requests = [] |
This file contains 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
page.on('request', interceptedRequest => { | |
if (interceptedRequest.resourceType() === 'image') { | |
interceptedRequest.abort() | |
} else { | |
interceptedRequest.continue() | |
} | |
}) |
This file contains 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
public class LogIn { | |
public void LoginAsUser(String name, String password) { | |
WebDriver webDriver = Driver.webDriver; | |
webDriver.findElement(By.id("login")).sendKeys(name); | |
webDriver.findElement(By.id("password")).sendKeys(password); | |
webDriver.findElement(By.linkText("Log in")).click(); | |
} | |
} |
This file contains 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
public class LoginPage { | |
private final WebDriver webDriver; | |
@FindBy(linkText = "Log in") | |
private WebElement login; | |
@FindBy(id = "username") | |
private WebElement usernameInput; | |
@FindBy(id = "password") |
This file contains 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
public static void type(String text, WebElement webElement) { | |
if (text == null) { | |
return; | |
} | |
new WebDriverWait(driver(), 30).until((WebDriver) -> { | |
try { | |
webElement.clear(); | |
if (webElement.getAttribute("value").length() > 0) { |
This file contains 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
public static void click(WebElement webElement) { | |
String source = driver.getPageSource(); | |
WebDriverWait wait = new WebDriverWait(driver(), 30); | |
ExpectedCondition<Boolean> elementIsClickable = arg0 -> { | |
try { | |
webElement.click(); | |
return !driver.getPageSource().equals(source); | |
} catch (Exception e) { |
This file contains 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
public static void click(WebElement webElement) { | |
WebDriverWait wait = new WebDriverWait(driver(), 30); | |
ExpectedCondition<Boolean> elementIsClickable = arg0 -> { | |
try { | |
webElement.click(); | |
return true; | |
} catch (Exception e) { | |
return false; | |
} | |
}; |
This file contains 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
public WebElement findElement(By by) { | |
try { | |
WebDriverWait wait = new WebDriverWait(driver, 5); | |
return wait.until(ExpectedConditions.visibilityOfElementLocated(by)); | |
} catch (Exception e) { | |
return NullWebElement.getNull(); | |
} | |
} | |
public List<WebElement> findElements(By by) { |
NewerOlder