You are here: Home

SoftwareQAtestings.com

...Your Hub for Software Testing and Quality Assurance

~ Contact Us ~ Privacy Policy ~ Register ~
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Can we Detect Strings with specific colour (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Can we Detect Strings with specific colour
#2439
al_b (User)
Gold Boarder
Posts: 215
graphgraph
User Offline Click here to see the profile of this user
Can we Detect Strings with specific colour 5 Months, 2 Weeks ago Karma: 0  
I have a very tough problem.

Can We go through all the strings in a Web Page, Detect Strings with Specific Colour and save them any Where.
Is it possible Via VBScript.

Please Help
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2440
Manas09 (User)
Gold Boarder
Posts: 245
graph
User Offline Click here to see the profile of this user
Re:Can we Detect Strings with specific colour 5 Months, 2 Weeks ago Karma: 1  
Create a description object with the class type and specific color you are looking for then run through all the objects found and then save them to an array/file where ever you want.

Something like

Set obj = Description.Create()
obj("micclass").value = "WebElement"
obj("color").value = "#000ff"

For i=0 to (obj.count -1)
tmp=obj.GetROProperty("innertext")' or text,outertext
Write tmp to File
Next
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop