Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Application Program Interviews:AutoCADBEA WeblogicBioinformaticsBizTalk ServerBug Tracking ToolsBugzillaClarify CRMCoding StandardsComputer Aided Design (CAD) DesignerCVSGIMPJMXLINQLoadRunnerMagentoMATLABMicrosoft AccessMicrosoft ExcelMicrosoft OfficeMicrosoft OutlookMicrosoft WordModel View Controller (MVC)OLAPOOADQuickbookRational RobotRDFSchemaSiebelSilkTestSVGTest PlanTesting ToolsUnity 3D DeveloperVRMLWCF SDKWPFXML DOMXPointer
Copyright © 2018. All Rights Reserved
SilkTest Interview Question:
I ca not simple use DialogBox ( ).Close () from some reason it is not working?
Submitted by: AdministratorI have a button that upon clicking on, pops a second BrowserChild. This window however does not have the usual toolbar. It is actually generated by a javascript function (openWindow). How do I close that window. I can't simple use "DialogBox (" ").Close ()" from some reason it is not working.
The trully depends on how the second window is declaried.
I work with browsers that have popup windows (using JavaScript) that contains no Browser characterists (no toolbar, status bar, location, etc). So, Silk views the browser as a dialog, but declaring it as a dialog, it fails. It also see's a browser inside. So, I let Silk declare it as a dialog and typically get something like:
[code]
[-] window DialogBox DBCreateOffer
[ ] tag "Requisition Create?Edit"
[-] window BrowserChild BCCreateOffer
[ ] tag "Create Offer"
[ ] parent "CustomBrowser"
[/code]
I then modify the declaration that Silk made and make the BrowserChild part of the dialog:
[code]
[-] window DialogBox DBCreateOffer
[ ] tag "Requisition Create?Edit *"
[-] BrowserChild BCCreateOffer
[ ] tag "Create Offer"
[/code]
I can then close the browser "dialog" by calling:
DBCreateOffer.Close()
Submitted by: Administrator
The trully depends on how the second window is declaried.
I work with browsers that have popup windows (using JavaScript) that contains no Browser characterists (no toolbar, status bar, location, etc). So, Silk views the browser as a dialog, but declaring it as a dialog, it fails. It also see's a browser inside. So, I let Silk declare it as a dialog and typically get something like:
[code]
[-] window DialogBox DBCreateOffer
[ ] tag "Requisition Create?Edit"
[-] window BrowserChild BCCreateOffer
[ ] tag "Create Offer"
[ ] parent "CustomBrowser"
[/code]
I then modify the declaration that Silk made and make the BrowserChild part of the dialog:
[code]
[-] window DialogBox DBCreateOffer
[ ] tag "Requisition Create?Edit *"
[-] BrowserChild BCCreateOffer
[ ] tag "Create Offer"
[/code]
I can then close the browser "dialog" by calling:
DBCreateOffer.Close()
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.