473,946 Members | 15,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

open browser using cpamie - how to maximize?

1 New Member
Expand|Select|Wrap|Line Numbers
  1. import sys
  2.  
  3. import cPAMIE
  4.  
  5. url = sys.argv[1]
  6.  
  7. dom = cPAMIE.PAMIE(url)
how can I maximize the current active browser?
Dec 3 '08 #1
1 3133
ewascent
1 New Member
This is how I found to resize the window.

from cPAMIE import PAMIE
ie = PAMIE()

ie.navigate(url ="http://bytes.com",)

app = ie.getIE()
app.Left = 0
app.Top = 0
app.Width = 1280
app.Height = 1024
Apr 10 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1418
by: Bettina Costa | last post by:
Hello, Your help was very useful last time, so I ask you again... may I? I have 2 problems: 1) I don't know why, but sometimes, when I open Internet Explorer, the browser opens itself in a reduced size, so that I have to maximize the window to see it at full size, and sometimes it opens at full size. Is somewhere a setting saved up that can explain what happens? I would like
10
6785
by: David McCulloch | last post by:
The following code opens a new window, but the "resizeTo" doesn't resize it. Why not? (Don't ask why I simply did not open the window with the new size....my original problem was how to open a new window with maximized dimensions!) FYI, I uploaded the same code to: http://tosasoft.com/test/open.htm ========================================
29
5053
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the window properly but does not pass the parameter. (this is part of a coldfusion template) <a href="##"
0
1190
by: calfdog | last post by:
I am pleased to announce version cPAMIE 1.6 the Web automation tool for Internet explorer. If your looking for a fast way, easy to learn way to drive your browser check out PAMIE. Is PAMIE right for you?, depends on your needs and complexity of the web application. Pamie can take care of the basic needs such as driving web forms without a problem.
6
9003
by: Mateo | last post by:
Hi! I tried to open page in new window with window.open(...) method. open() method supports fullscreeen mode, but I would like to open new maximized window with tiltle bar only.... Any idea how to do this? Can I maximize window from current page after it is opened with window.open?
1
2019
by: Sam R | last post by:
Hi, I am new to Python, and PAMIE has been a very useful tool for my website functionality testing. I was wondering if anyone knows how to do the following testcases with either PAMIE or Python. 1. Load a page http://www.prophet.net/quotes/stocknews.jsp?symbol=MSFT Verify that the string 'News for MSFT' exists on the page. Verify that the date '7 November 2005' is equal to today's date. Your help would be greatly appreciated and here...
0
1338
by: Wayne | last post by:
If I open a report using this code it "flashes" as it opens: DoCmd.OpenReport "NumbersByDate", acViewPreview DoCmd.Maximize This is probably to be expected. If I open the same report using this code it still flashes: DoCmd.Echo False
3
2922
by: Mike | last post by:
When I run my web app via the IDE, it opens up IE maximized (full screen) then when the page gets ready to load it shrinks down my IE window. Is there a way to keep IE to a full screen?
0
1411
by: Silgd1 | last post by:
Hey everyone, I'm trying to automate a webpage using cPamie in conjection with python 2.4. I can get to the page and login. when I try to click the login button, I receive an out of index error. This website has a hidden control that opens a separate page to give messages from the site and those are also posing a problem for me. Code below: ie = cPAMIE.PAMIE() ie.Navigate(url) ie.Navigate(url-2) ie.SetTextBox(usrname,'USERNAME',0)...
0
10150
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11141
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8240
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6097
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4928
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4524
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.