Ask a Question

Access web elements inside iframe

nomansial
Occasional Contributor

Access web elements inside iframe

Hi


I'm unable to access web elements inside an iframe. After reading the documentation I'm using the below line of code to launch the browser but still it is unable to access the iframe elements.

 

Browsers.Item[browser_name].RunOptions = "--disable-web-security --user-data-dir=\"C:\\Users\\qpros_nssial\\AppData\\Local\\Google\\Chrome\\User Data\\Default\" --disable-site-isolation-trials -private"
Delay(3000)
Browsers.Item[btChrome].Run(url)
Sys.Browser().BrowserWindow(0).Maximize()

3 REPLIES 3
rraghvani
Regular Contributor

See Not able to access elements inside iframe. Will that be able to resolve your issue?

nomansial
Occasional Contributor

Hi @rraghvani 

 

I have passed the same arguments through scripting but it is unable to locate the element as posted in my question.

rraghvani
Regular Contributor

See Accessing Object Frames in Chrome and Edge. Try the script example that's provided.

cancel
Showing results for 
Search instead for 
Did you mean: