2007年8月23日星期四

Watir 方法

Class Watir::IE
In: watir.rb
Parent: Object

Constants

REVISION = "$Revision: 1.211.2.2 $"
The revision number ( according to CVS )
VERSION = "1.4.1"
the Release number
READYSTATE_COMPLETE = 4
Used internally to determine when IE has finished loading a page
DEFAULT_TYPING_SPEED = 0.08
The default delay when entering text on a web page.
DEFAULT_SLEEP_TIME = 0.1
The default time we wait after a page has loaded.
DEFAULT_HIGHLIGHT_COLOR = "yellow"
The default color for highlighting objects as they are accessed.

Attributes

activeObjectHighLightColor [RW] The color we want to use for the active object. This can be any valid web-friendly color.
defaultSleepTime [RW] This is used to change how long after a page has finished loading that we wait for.
down_load_time [R] use this to get the time for the last page download
enable_spinner [RW] use this to switch the spinner on and off
ie [R] Use this to gain access to the ‘raw’ internet explorer object.
logger [RW] access to the logger object
newWindow [RW] When a new window is created it is stored in newWindow
typingspeed [RW] This is used to change the typing speed when entering text on a page.
url_list [R] this contains the list of unique urls that have been visited

Public Class methods

Attach to an existing IE window, either by url or title. IE.attach(:url, ‘www.google.com’) IE.attach(:title, ‘Google’)

Create a new IE Window, starting at the specified url. If no url is given, start empty.

Public Instance methods

this method is used to add an error checker that gets executed on every page load

  • checker Proc Object, that contains the code to be run

this method is used internally to attach to an existing window dont make private

Go to the previous page - the same as clicking the browsers back button an WIN32OLERuntimeError exception is raised if the browser cant go back

Make the window come to the front

This method checks the currently displayed page for http errors, 404, 500 etc It gets called internally by the wait method, so a user does not need to call it explicitly

clear the list of urls that we have visited

Closes the Browser

Search the current page for specified text or regexp. Returns true if the specified text was found. Returns matchdata object if the specified regexp was found.

 * text - string or regular expression - the string to look for

used by the popup code only

this allows a checker to be disabled

  • checker Proc Object, the checker that is to be disabled

Return the current document

This method gives focus to the frame It may be removed and become part of the frame object

Go to the next page - the same as clicking the browsers forward button an WIN32OLERuntimeError exception is raised if the browser cant go forward

Deprecated: Use IE#ie instead This method returns the Internet Explorer object. Methods, properties, etc. that the IE object does not support can be accessed.

Navigate to the specified URL.

 * url  - string - the URL to navigate to

The HTML of the current page

Maximize the window (expands to fill the screen)

Minimize the window (appears as icon on taskbar)

Refresh the current page - the same as clicking the browsers refresh button an WIN32OLERuntimeError exception is raised if the browser cant refresh

Restore the window (after minimizing or maximizing)

this method runs the predefined error checks

Send key events to IE window. See www.autoitscript.com/autoit3/docs/appendix/SendKeys.htm for complete documentation on keys supported and syntax.

deprecated: use logger= instead

this method shows the name, id etc of the object that is currently active - ie the element that has focus its mostly used in irb when creating a script

This method shows the available objects on the current page. This is usually only used for debugging or writing new test scripts. This is a nice feature to help find out what HTML objects are on a page when developing a test case using Watir.

this method shows all the divs availble in the document

Show all forms displays all the forms that are on a web page.

This method is used to display the available html frames that Internet Explorer currently has loaded. This method is usually only used for debugging test scripts.

this method shows all the images availble in the document

this method shows all the links availble in the document

this method shows all the spans availble in the document

this method is used to show all the tables that are available

Return the status of the window, typically from the status bar at the bottom.

The text of the current document

Return the title of the window

returns the current url, as displayed in the address bar of the browser

This method is used internally to cause an execution to stop until the page has loaded in Internet Explorer.

2007年2月24日星期六

Tokyo Love Stroy

恋爱,只要是参加了就是有意义的,即使是没有结局~~当你喜欢上一个人的那一刹,是永远都不会消失的~~这都将会变成你生活的勇气,而且会变成你在黑暗中的一线曙光.

不是常常有机会遇到可以爱他一生的人的,所以我很珍惜爱过你的一切回忆!爱过你的回忆,被你爱过的回忆,这些回忆都一直都珍藏在我心里唷~~

你好,丸子。应该是晚上好了吧!趁你去买东西的时候,我写了这些话。就要跟你分别了,虽然有点儿令人难过~~ 但不管怎么样,能与你在相同的季节,相同的道路上走在一起,对我来说都是值得珍惜和怀念的。丸子,现在这个时刻最美,跟你离别的时候,能够这样和你在一起,我想我将来也一定能坚强的过下去的。遇到你是我人生的一大收获,不想说再见,也不想约定什么,因为我们一定还会再见面的。――赤名リカ
PS:你好么?


你知道嘛,一生中能爱上别人并不事一件简单的事。
.......但也许很快就能喜欢上。
......喜欢过完治,因此觉得很珍惜。
会想著......我喜欢你,你也喜欢我。
(拍拍胸口)永远都活在这里。
有时候会想明天有恋爱会是怎麽样的?
......可是不会想出会爱上什麽样的人。
有过去的我,才会有现在的我。
能对自己说......做得好......就是这样。


没事的,笑一下吧。人生在世正所谓今日不知明日事,你有何必担心那么多啊。所以做人最紧要放开怀抱 !

2007年2月13日星期二

hello,2007

biocona come here!
I want to discuss the everything about biology!
I have learnt bioinformatics one year!