02-17-2011, 02:35 AM
My developers like to do this to me as well, so I stopped using title. I use the URL now and only the server/application part. I don't really care what the name of the page is or the full url since that changes so frequently.
ie. to test mysite.com/someapplication/page1.html ...I use
This way I can switch between my 3 environments (dev, staging, prod) which can all have different subdomain.domain issues and except anything in the page as well as many levels of folders/pages. Provided the URL contains the application/folder I am testing, then it proceeds.
Hope this helps.
ie. to test mysite.com/someapplication/page1.html ...I use
Code:
Browser("url:=.*someapplication.*").Page()
This way I can switch between my 3 environments (dev, staging, prod) which can all have different subdomain.domain issues and except anything in the page as well as many levels of folders/pages. Provided the URL contains the application/folder I am testing, then it proceeds.
Hope this helps.