Forum Discussion

joffre's avatar
joffre
Regular Contributor
13 years ago

How to work with pop-up windows on IE?

Hi all.



I'm having some trouble when trying to work with pop-up windows on my project.



When I click on a button, it opens a new IE window where I might make some configurations. My automation can't be forward if this configurations aren't done.



I've tried simple recording method, but it isn't working. The script recorded shows the same Process iexplore with index 2.



How will I fix that?



Here is the generated code with two edits (just renaming to make the code smaller.



  'This line is on normal window

  IExplore.Page(FPWeb).Frame("Frame2").Form("Form1").Table(1).Cell(0, 7).SubmitButton("btnParâmetros").Click

  'This line is on PopUp window

  IExplore.Page(FPWeb).Form("Form1").Panel("pnlCodigo").Panel(0).SubmitButton("btnNovo").Click

  'This line is on PopUp window

  Call IExplore.Page(FPWeb).Form("Form1").Panel("pnlCodigo").Panel(0).Select("cboPerfil").ClickItem("PFL_FOLHAS_SITUACOES")

  'This line is on PopUp window

  IExplore.Page(FPWeb).Form("Form1").SubmitButton("btnOk").Click

  'This line is on normal window

  IExplore.Page(FPWeb).Frame("Frame2").Form("Form1").Table(0).Cell(0, 0).ImageButton("btnVolta").Click
No RepliesBe the first to reply