menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

Flood

A place to chat about load testing and answer questions.

Channels
Team

Working with iframes - Element 2.0.4

May 7, 2021 at 5:34pm

Working with iframes - Element 2.0.4

May 7, 2021 at 5:34pm
I have installed 2.0.4 and dealing with iframes where I need to click on the particular element on the iframe which will open another text box where I need to enter my value.
When I try to click on the element using “await page.frame.click” – am getting an error message “page.frame.click is not a function”.
Below is my script - Kindly help
// able to verify frame const framehandle = await page.frames().find(frame => frame.name() === '_com_trimedx_liferay_looker_portlet_LookerEmbedPortlet_INSTANCE_hozg_looker') // able to verify text inside iframe const frame = await page.frame('Affiliation') // this step fails (trying to click on the element) await page.frame.click('//*[="lk-react-container"]/div/div/section/div/div[1]/div/section/div/div[1]/div/span/span')
Error message: page.frame.click is not a function
No messages yet