Forum Discussion
Hi,
Note, that the mentioned tscon command does not close your UI session, but switches it to admin console one which can have different screen resolution than yours. I am not sure about the details, but can imagine the situation, when the size of the browser window remains the same and thus, on the lower screen resolution, part of the window appears out of desktop viewport, thus is not captured and creates impression of partial screenshot.
Does this look like the reason?
Another note: As you are working with web browser and if you are not interested in browser's window itself, you may consider .PagePicture() method instead. This method takes screenshot of complete web page scrolling it automatically.
Hi,
I tried with the PagePicture method but the result is the same it shows partial image. As, I am using tscon it command it shows desktop console of that virtual machine, so not sure if it has become low resolution.
I have attached the file to show how the images looks with connected mode and disconnected mode.
- AlexKaras5 years agoChampion Level 3
Hi,
Hm-m-m... I don't see any partial image. What I see is web page that does not fit into browser's viewport and thus must be scrolled using scrollbar.
I think that this is in line with my guess.
Try to shrink browser window and check if scroll bar appears. Then talk to your designers/developers and ask them how page must respond when the size of the viewport is changed. Considering that not the whole page must be scrolled but just a part of it I think that .PagePicture() method will not help in your case.
At the moment I am pretty sure that desktop resolution set in the Administrator's profile is less then the resolution set for your current user profile.
- nimishbhuta5 years agoFrequent Contributor
Hi,
May be you are right that it is the administrator user profile is having less resolution than my current user. I checked with the System guys but they don't have access to physcial machine to change the resolution. My question is there any way we can change the resolution as my user is having admin privileges or can we run the tscon command with my user with admin privileges. I tried using the tscon command with my user but it says access denied.
Please let me know how should I go about this.
Regards,
Nimish
- AlexKaras5 years agoChampion Level 3
Hi Nimish,
Yes, I think this is possible.
You may either make direct changes to the Windows Registry for the settings that specify screen resolution for Administrator or try Robert's suggestion from the https://community.smartbear.com/t5/TestComplete-Functional-Web/Why-screen-resolution-becomes-smaller-when-I-disconnect-RDP/m-p/190604/highlight/true#M35116 thread.
Related Content
- 2 years ago
Recent Discussions
- 2 days ago