Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

browser object #25

Open
ghost opened this issue Jul 28, 2010 · 2 comments
Open

browser object #25

ghost opened this issue Jul 28, 2010 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 28, 2010

This is not really an "issue" per se, just a suggestion. Have you ever thought about doing a little extra meta-programming to get rid of all the $browser objects in the step definitions?

Just an idea.

@langalex
Copy link
Owner

what kind of meta programming do you suggest? i guess browser could just be a method somewhere. good idea though. global variables are evil. wanna go for it?

@ghost
Copy link
Author

ghost commented Jul 28, 2010

I'd like to go for it, time permitting. Basically, what would happen is all browser instance calls would appear to be 'self' calls to whatever object the step belongs to (i have to study the code to determine that). That object (which would probably be missing those calls) would hand them off to the culerity wrappers to celerity.

That's the theory at least. :)

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

No branches or pull requests

1 participant