In this article, I am going to show, how to follow the web links in the Dynamic web page is easy with QEngine.
Here are the two function used in that.
You can get the DOM element property with the following function,
| Code: |
| getElementProperty(tagName,propertyName,propertyValue,index,propertyNeeded,regExpRequired='false')
|
| Code: |
| fireEventOnElement(tagName,propertyName,propertyValue,index,actionName,actionValue='',regExpRequired='false')
|
| Code: |
| getElementProperty("A","href",propertyValue,index,"href",regExpRequired='false') |
| Code: |
| getElementProperty("A","href",".*",index,"href","true") |
| Code: |
|
i=1 while i>0: values=[] setLastWindow() property=getElementProperty("A","href",".*",i,"href","true") if property is not None and property!='': values.append(property) i=i 1 else: i=0 return values |
| Code: |
|
for i in range(0,len(values)): setLastWindow() fireEventOnElement("A","href",values[i],i,"click","NONE","false") |
| Code: |
|
for i in range(0,len(values)): setLastWindow() url=" fireEventOnElement("A","href",url,i,"click","NONE","false") |
Post Comment