seratch / scalatest

Automatically exported from code.google.com/p/scalatest
Apache License 2.0
0 stars 0 forks source link

Pages can only be called in the same scope they are created #36

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write a class that extends Page and then call (on the same scope) "go to 
page" -> everything works fine
2. Now take that call out of the scope and place it somewhere else and import it
3. Call "go to page"

What is the expected output? What do you see instead?

What should happen is that it should simply work. Instead, it throws an error 
saying that it requires a "TestLogin.this.type#Page" but got a 
"WebBrowser.Page". 

What version of the product are you using? On what operating system?

2.0.M6-SNAP8

Please provide any additional information below.

I think the issue is that the trait Page is defined inside of WebBrowser, so 
when a test extends WebBrowser, the only type it will accept is a "this.Page" 
not a "Page". 

Original issue reported on code.google.com by prodrig...@manaproducts.com on 7 May 2013 at 9:23

GoogleCodeExporter commented 8 years ago
I'm having the exact issue here. 

Original comment by j...@wirelessglue.com on 15 Feb 2014 at 1:09