Forum Discussion
fayrehouse
12 years agoFrequent Contributor
Hi Tanya,
ScrollIntoView does indeed provide a workaround - but in order to be "safe" here, I'd also need to do a check for object existance?
Ie
if (Sys.Browser().Page("http://something").Form("abc").Image("xyz").Exists)
{
Sys.Browser().Page("http://something").Form("abc").Image("xyz").ScrollIntoView()
Regions.RegionName.Check(Sys.Browser().Page("http://something").Form("abc").Picture()
}
Also, this only works for specific OBJECT regions. Regions defined against a "clipping" of a web page (eg, to show various object alignment or some such) could not use this technique.
I guess another workaround is to use PagePicture? ie, scroll to study the whole current page, hunting down the region? eg
Regions.RegionName.PageCheck(Sys.Browser().Page("http://something").PagePicture()
However, this in turn seems to have issues, owing to another post of mine! http://smartbear.com/forums/f81/fp2/t83878/problems-with-pagepicture/
ScrollIntoView does indeed provide a workaround - but in order to be "safe" here, I'd also need to do a check for object existance?
Ie
if (Sys.Browser().Page("http://something").Form("abc").Image("xyz").Exists)
{
Sys.Browser().Page("http://something").Form("abc").Image("xyz").ScrollIntoView()
Regions.RegionName.Check(Sys.Browser().Page("http://something").Form("abc").Picture()
}
Also, this only works for specific OBJECT regions. Regions defined against a "clipping" of a web page (eg, to show various object alignment or some such) could not use this technique.
I guess another workaround is to use PagePicture? ie, scroll to study the whole current page, hunting down the region? eg
Regions.RegionName.PageCheck(Sys.Browser().Page("http://something").PagePicture()
However, this in turn seems to have issues, owing to another post of mine! http://smartbear.com/forums/f81/fp2/t83878/problems-with-pagepicture/