code not running on apify platform
using crawlee documentation for playwright i created a crawler on my local machine, it works fine, but putting same code on apify platform playwright scrapper it does not work, can anyone please help me. the code i am attempting to run is
apify platform
apify platform
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
};
}