Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

White unable to find modal widows post latest nuget update #247

Closed
ashokkn opened this issue Jun 9, 2014 · 22 comments
Closed

White unable to find modal widows post latest nuget update #247

ashokkn opened this issue Jun 9, 2014 · 22 comments

Comments

@ashokkn
Copy link

ashokkn commented Jun 9, 2014

I updated my solution with the latest White nugget package and apparently found that GetWindows() which returns a collection of modal windows have stopped working with error an from the core itself. This sounds to be problem with White itself for me.

Please check and assist.

In the below screenshot, qbWin contains my parent window and i could confirm that, but latter when try to get the modal windows, the problem occurs.

screen shot 2014-06-09 at 5 43 00 pm

@ilya-murzinov
Copy link
Contributor

Are you sure that the exact same code on the exact same application worked fine in 0.12.0?
I don't see any problems..

@ashokkn
Copy link
Author

ashokkn commented Jun 9, 2014

yeah.. 200% sure .. it was my working code and a whole lot of automation was running before

@JakeGinnivan
Copy link
Member

This is for a win32 app?

https://github.com/TestStack/White/pull/221/files was an attempt to fix #165. This is likely the cause, would be good to figure a fix which works for both

@ashokkn
Copy link
Author

ashokkn commented Jun 9, 2014

Yeah mine is a win32 app.
screen shot 2014-06-09 at 6 24 15 pm

I just re-tried to get a list of all modal windows, no luck. I think, its a definite problem.

@JakeGinnivan
Copy link
Member

Can you copy the full stack trace from your exception above. I can't see the context from the screenshot

@ashokkn
Copy link
Author

ashokkn commented Jun 10, 2014

at System.Linq.Enumerable.Cast[TResult](IEnumerable source)
at TestStack.White.AutomationElementSearch.AutomationElementFinder.Children(AutomationSearchCondition[] automationSearchConditions) in c:\TeamCity\buildAgent\work\89a20b30302799e\src\TestStack.White\AutomationElementSearch\AutomationElementFinder.cs:line 29
at TestStack.White.UIItems.WindowItems.Win32Window.ModalWindows() in c:\TeamCity\buildAgent\work\89a20b30302799e\src\TestStack.White\UIItems\WindowItems\Win32Window.cs:line 44
at QuickBooks.Tests.UnitTest1.TestMethod1() in c:\Users\anatarajan2\Documents\Visual Studio 2012\Projects\WhiteAutomation\QuickBooks\Tests\UnitTest1.cs:line 54

@ashokkn
Copy link
Author

ashokkn commented Jun 10, 2014

Through the Package Manager Console, i tried to uninstall 0.13.0 version and install 0.12.0 - the installation was successful, but running any test results in -

Test Name: TestMethod1
Test FullName: QuickBooks.Tests.UnitTest1.TestMethod1
Test Source: c:\Users\anatarajan2\Source\Repos\QBDTWhiteAutomation\QuickBooks\Tests\UnitTest1.cs : line 23
Test Outcome: Failed
Test Duration: 0:00:00

Result Message: Unable to create instance of class QuickBooks.Tests.UnitTest1. Error: System.IO.FileLoadException: Could not load file or assembly 'TestStack.White, Version=335.0.0.0, Culture=neutral, PublicKeyToken=2672efbf3e161801' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'TestStack.White, Version=0.12.0.0, Culture=neutral, PublicKeyToken=2672efbf3e161801' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).
Result StackTrace: at QuickBooks.Tests.UnitTest1..ctor()

@JakeGinnivan
Copy link
Member

I have unlisted the package. It looks like i have an issue in my build version stamping process

Uninstall, then reinstall v0.12. I will try to fix the issues and get v0.13.1 released by the end of the week

Sorry for the inconvenience.

@ashokkn
Copy link
Author

ashokkn commented Jun 10, 2014

Jake.. i uninstalled and reinstalled 0.12.0, still the same problem.

Result Message: Unable to create instance of class QuickBooks.Tests.UnitTest1. Error: System.IO.FileLoadException: Could not load file or assembly 'TestStack.White, Version=335.0.0.0, Culture=neutral, PublicKeyToken=2672efbf3e161801' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'TestStack.White, Version=0.12.0.0, Culture=neutral, PublicKeyToken=2672efbf3e161801' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).
Result StackTrace: at QuickBooks.Tests.UnitTest1..ctor()

@JakeGinnivan
Copy link
Member

Can you check your references? Looks like maybe you have multiple projects both referencing white and they are referencing different versions

@JakeGinnivan
Copy link
Member

I have fixed the versioning issue (it being stamped wrong), I still think that particular issue for you is due to two different projects referencing different versions and I also have reverted the window change that went into 0.13.0.

I will release 0.13.1 tomorrow morning.

@JakeGinnivan
Copy link
Member

Ok, please update to 0.13.2 (I had a mishap with 0.13.1 and it didn't publish properly).

Let me know how you go, sorry for the delay. Have been busy

@ashokkn
Copy link
Author

ashokkn commented Jun 12, 2014

Jake - i created a new project and got the latest nuget package and ran a simple test to check the updates from the package.. the result is here.. :(

there is a some problem with the package that is being pushed Jake. Either it is not signed properly or something is going wrong. I am not even able to go back to 0.12.0 version because the same problem exists there as well.

screen shot 2014-06-12 at 9 23 57 am

@ashokkn
Copy link
Author

ashokkn commented Jun 12, 2014

0.12.0 seems to be working for me now.. i shall stay in that version till the new version gets fixed.

@JakeGinnivan
Copy link
Member

Damn, I did forget to upgrade the NuSpec as well.

Though you should just be able to add a binding redirect or upgrade the castle.core dependency manually.

Pushing out 0.13.3 to fix the NuSpec.

@JakeGinnivan
Copy link
Member

13 really does seem to be an unlucky number

@JakeGinnivan
Copy link
Member

Ok, that has been pushed.

Thanks heaps for your patience. I haven't done a white deployment in ages and it is setup a bit different to my other projects which is why I missed the NuSpec.

Thanks for the report. Let me know how you go

@ashokkn
Copy link
Author

ashokkn commented Jun 12, 2014

Finally.. :)

I can certify that the latest build is good and all my existing tests are intact.

Yet.. Jake and Ilya.. White was still not able to pick up DataItems.

screen shot 2014-06-12 at 12 15 36 pm 2

@ashokkn
Copy link
Author

ashokkn commented Jun 12, 2014

Additional Inputs..

screen shot 2014-06-12 at 12 26 53 pm 2

@JakeGinnivan
Copy link
Member

This is a new issue in the new version?

Sent from my Windows Phone


From: Ashok Kumar Natarajanmailto:[email protected]
Sent: ý6/ý12/ý2014 8:01 AM
To: TestStack/Whitemailto:[email protected]
Cc: Jake Ginnivanmailto:[email protected]
Subject: Re: [White] White unable to find modal widows post latest nuget update (#247)

Additional Inputs..

[screen shot 2014-06-12 at 12 26 53 pm 2]https://cloud.githubusercontent.com/assets/7577538/3254774/5fa1a460-f1ff-11e3-9af4-843019cc318b.png


Reply to this email directly or view it on GitHubhttps://github.com//issues/247#issuecomment-45836115.

@ashokkn
Copy link
Author

ashokkn commented Jun 12, 2014

White unable to extract DataItems (ListViewRow) #241

was the defect that was fixed by ilya and got delivered in 13 version .. still it is not working.

@JakeGinnivan
Copy link
Member

Ok cool, thanks. Have reopened #241 and will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants