async function pageFunction(context) {
const { page, request, log } = context;
//await waitFor('#vc-profile');
const currentInvestingPosition = context.locator('.line-separated-row.row', { hasText: 'Current Investing Position' }).innerHTML();
const investmentRange = context.locator('.line-separated-row.row', { hasText: 'Investment Range' }).innerHTML();
const sweetSpot = context.locator('.line-separated-row.row', { hasText: 'Sweet Spot' }).innerHTML();
const investmentsOnRecord = context.locator('.line-separated-row.row', { hasText: 'Investments On Record' }).innerHTML();
const currentFundSize = context.locator('.line-separated-row.row', { hasText: 'Current Fund Size' }).innerHTML();
const results = {
url: context.request.url,
current_investing_position: currentInvestingPosition,
investment_range: investmentRange,
sweet_spot: sweetSpot,
investments_on_record: investmentsOnRecord,
current_fund_size: currentFundSize
}
console.log(results)
return {
results
};
}
async function pageFunction(context) {
const { page, request, log } = context;
//await waitFor('#vc-profile');
const currentInvestingPosition = context.locator('.line-separated-row.row', { hasText: 'Current Investing Position' }).innerHTML();
const investmentRange = context.locator('.line-separated-row.row', { hasText: 'Investment Range' }).innerHTML();
const sweetSpot = context.locator('.line-separated-row.row', { hasText: 'Sweet Spot' }).innerHTML();
const investmentsOnRecord = context.locator('.line-separated-row.row', { hasText: 'Investments On Record' }).innerHTML();
const currentFundSize = context.locator('.line-separated-row.row', { hasText: 'Current Fund Size' }).innerHTML();
const results = {
url: context.request.url,
current_investing_position: currentInvestingPosition,
investment_range: investmentRange,
sweet_spot: sweetSpot,
investments_on_record: investmentsOnRecord,
current_fund_size: currentFundSize
}
console.log(results)
return {
results
};
}