puppeteer wait for select 5bname 3d

Solutions on MaxInterview for puppeteer wait for select 5bname 3d by the best coders in the world

showing results for - "puppeteer wait for select 5bname 3d"
Reda
20 Mar 2017
1test("fruit dropdown becomes enabled when food type fruit is selected", async () => {
2  await page.select('[data-testid="food"]', "fruit"); // this makes a selection in the drop down and fires a request
3
4  // I should wait for request to finish before doing this
5  const isFruitDropdownDisabled = await page.$eval(
6    '[data-testid="fruit"]',
7    element => element.disabled
8  );
9
10  expect(isFruitDropdownDisabled).toBe(false);
11}, 16000);
12