Get clipboard with TestStack.White while running a SpecFlow test

22 views
Skip to first unread message

PaulN

unread,
Jun 5, 2018, 7:55:12 AM6/5/18
to TestStack.White
I'm not sure if this is specifically a TestStack.White thing.

I'm trying to work out how to get the clipboard data withing a SpecFlow test.

I keep getting exceptions saying that ApartmentState must be set to STA.

I've tried running in a different thread, adding [Apartment(ApartmentState.STA)] to the top of the method.  Nothing seems to work.

Any ideas?

Thanks
Reply all
Reply to author
Forward
0 new messages