Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying the DialogBox in firefor
#11
Solved: 11 Years, 4 Months, 1 Week ago
Zaira,
I used the following code the issue got solved:
Code:
Browser("XXXIS-AS Login").Dialog("micclass:=Dialog","text:=The page at 172.16.0.0 says:").Page("micclass:=Page","title:=The page at 172.16.0.0 says:").WebButton("micclass:=WebButton","name:=OK").Click
Reply
#12
Solved: 11 Years, 4 Months, 1 Week ago
Hello QTPian,

I have the following code:

Code:
Browser("Mantenimiento Vision").Dialog("text:=La página en http://" + datatable("IPhost",dtGlobalSheet) + ":8080 dice:").Page("title:=La página en http://" + datatable("IPhost",dtGlobalSheet) + ":8080 dice:").WebButton("name:=Aceptar").Click

The parameter "IPhost" changes depending on which server is available. I have saved the object in the OR and it will work while the host is always the same, but it should be dynamic.

The error is that I cannot find the [WebButton] object's parent [Dialog] (class Dialog).

I also have tried adding micclass:=Dialog and micclass:=Page properties but no luck yet. I am running on firefox only, my application does not run on IE.

Thanks...
Reply
#13
Solved: 11 Years, 4 Months, 1 Week ago
Hey Zaira,
You are almost done. Please remove the space between the concatenation operator (+) and the double quotes(").

Please check the following LOC with the line of code you have provided.
------
Code:
Browser("Mantenimiento Vision").Dialog("text:=La página en http://" + datatable("IPhost",dtGlobalSheet) +":8080 dice:").Page("title:=La página en http://" + datatable("IPhost",dtGlobalSheet) +":8080 dice:").WebButton("name:=Aceptar").Click
------

Please let me know if the above solution solves your issue.

Thanks,
Please note another change.. Ignore the previously posted LOC. Remove the space between " and +.
The modified LOC is
------
Code:
Browser("Mantenimiento Vision").Dialog("text:=La página en http://"+ datatable("IPhost",dtGlobalSheet) +":8080 dice:").Page("title:=La página en http://"+ datatable("IPhost",dtGlobalSheet) +":8080 dice:").WebButton("name:=Aceptar").Click
------

Please use this and let me know if you need any further info.
Thanks,
Reply
#14
Solved: 11 Years, 4 Months, 1 Week ago
Thanks QTPian, it seems it worked...though I don't know which is the difference between "+ and " +

I also added the nativeclass in dialog section:

Code:
Browser("Mantenimiento Vision").Dialog("nativeclass:=MozillaDialogClass", "text:=La página en http://"+ datatable("IPhost",dtGlobalSheet) +":8080 dice:").Page("title:=La página en http://"+ datatable("IPhost",dtGlobalSheet) +":8080 dice:").WebButton("name:=Aceptar").Click
Cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)