save work
This commit is contained in:
@ -80,7 +80,7 @@ export async function gotoHome(driver: WebDriver): Promise<boolean> {
|
||||
}
|
||||
|
||||
export async function clickSeeAllAttractions(driver: WebDriver): Promise<boolean> {
|
||||
const xpath = `//h2[starts-with(normalize-space(.), 'Top Attractions in')]/parent::*[1]//a[starts-with(@href, '/Attractions') and .//span[normalize-space(.)='See all']]`;
|
||||
const xpath = `//h3[starts-with(normalize-space(.), 'Things to do')]/parent::*[1]//a[starts-with(@href, '/Attractions') and .//span[normalize-space(.)='See all']]`;
|
||||
|
||||
try {
|
||||
const anchorElement = await driver.wait(until.elementLocated(By.xpath(xpath)), 5000);
|
||||
@ -98,7 +98,7 @@ export async function clickSeeAllAttractions(driver: WebDriver): Promise<boolean
|
||||
}
|
||||
|
||||
export async function getSeeAllAttractionsUrl(driver: WebDriver): Promise<string | null> {
|
||||
const xpath = `//h2[starts-with(normalize-space(.), 'Top Attractions in')]/parent::*[1]//a[starts-with(@href, '/Attractions') and .//span[normalize-space(.)='See all']]`;
|
||||
const xpath = `//h3[starts-with(normalize-space(.), 'Top Attractions in')]/parent::*[1]//a[starts-with(@href, '/Attractions') and .//span[normalize-space(.)='See all']]`;
|
||||
|
||||
try {
|
||||
const anchorElement = await driver.wait(until.elementLocated(By.xpath(xpath)), 5000);
|
||||
|
||||
Reference in New Issue
Block a user