Identifying the DialogBox in firefor - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Identifying the DialogBox in firefor (/Thread-Identifying-the-DialogBox-in-firefor) Pages:
1
2
|
RE: Identifying the DialogBox in firefor - MahalakshmiDevi - 07-28-2009 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 RE: Identifying the DialogBox in firefor - zaira_p - 07-29-2009 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... RE: Identifying the DialogBox in firefor - QTPian - 07-29-2009 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, RE: Identifying the DialogBox in firefor - zaira_p - 08-06-2009 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 |