Hi,
When i open my browser using script its always not open with maximized.
always i have to click the maximize control in the web page
is there any possible script for this functionality?
Plz help me
Regards,
Punitha.
Printable View
Hi,
When i open my browser using script its always not open with maximized.
always i have to click the maximize control in the web page
is there any possible script for this functionality?
Plz help me
Regards,
Punitha.
Hi Punitha,
Incase you are using the sysutil.run option, try this -
Const SHOW_MAXIMIZED = 3 SystemUtil.Run "iexplore.exe", "http://www.knowledgeinbox.com", , , SHOW_MAXIMIZED
Incase you are using CreateObject methodology, I dont think there is an associate Window_Maximize method available. But there is a FullScreen method which is like -
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = true
objIE.Fullscreen = true
Cheers...
Bizzzzzare
Hi,
I gave the url name when i start record the application,
then i change the script.
first line of my script is starting like this
Browser("B").Page("P").Image("M").Click login_btn
In this where i have to add this lines.
Then i have to test the same website in 3 different languages,
the coding concepts are same. But the languages are different.
Can i merge these codes or is there any option for using this.
actually i cant understand this create object and all.
is it formate for opening the browsers?
Whats the advantage of this
Plz explain me.
Thx & Regards,
Punitha.
Hi Punitha,
Well CreateObject is used to actually create an instance of opening a browser and as per specified URL. It is a very efficient method of opening a browser without having to add the browser object to the Repository.
What I would suggest is you implement the CreateObject code I have mentioned and specify the Application URL as a parameter.
Once this is done, recognize the Newly Launched browser window object into your repository. Proceed ahead with your remaining code as usual.
Do let me know incase of any issues....
Cheers...
Bizzzzzare
Hi Umesh,
For maximize the web page
Const SHOW_MAXIMIZED = 3 SystemUtil.Run "iexplore.exe", "http://www.sitename.com", , , SHOW_MAXIMIZED
this script is working fine
But create object is not working
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = true
objIE.Fullscreen = true
In this script InternetExplorer is not in object repository error display
In this code where i have to insert my web url
plz give the example url like google open with this create object method.
Thx
Punitha. R
Hi Umesh,
If i use this code for open the browser its giving error
Set objIE = CreateObject("InternetExplorer.Application")
objIE.visible = true
objIE.Fullscreen = true
Plz give the explanation with the site google
and explain how i use this.
Thx and regards,
Punitha.R
Web development takes into account a lot of things, such as data entry error checking through forms, as well as sanitization of the data that is entered in those fields. Malicious practices such as SQL injection can be executed through users with ill intent yet only primitive knowledge of web development as a whole. Not only this, but scripts can be exploited to grant unauthorized access to the hacker to gain information such as email addresses, passwords and protected content.
Some of this is dependent on the server environment (most commonly Apache or Microsoft IIS) on which the scripting language, such as PHP, Ruby, Python, Perl or ASP is running, and therefore is not necessarily down to the web developer themselves to maintain. However, stringent testing of web applications before public release is encouraged to prevent such exploits from occurring.
Hi,
Thanks for ur reply.
I cant understand ur answers.
I am new to Qtp, so plz kindly explain in very simple way.
If its wrong sorry
Thx,
Punitha R.
hi Punitha.R
In QTP use CreateObject and then use windowState=Maximized statement
For example
Set q =createObject("InternetExplorer.Application")
q.Visible=True
q.WindowState=Maximized