How to check color, name of page - ASPX
Now I knew that is impossible to create a xml checkpoint for my webpage which is aspx page.
I want check:
- the name of web page
- the color on the web-For example some part of text should have background in green colors.
How to create this kind of validations- when you coludn't use xml checkpoint?
For colors - I've tried with a bitmap validations. But when I try validate all line (text and background) my validations fails- the images are not identical. On the other hands when I validate part of image- without text- only empty color line- my validations pass.
Any idea how to do it?
Re: How to check color, name of page - ASPX
'Use the DOM to get the information
set iDisplay = Browser().Page().WebElement().Object
' Get the currentstyle object
set iDisplayStyle = iDisplay.currentstyle
' Access the Display attribute
sTmp = ""
sTmp = iDisplayStyle.color
'This way gets you the color of object.