-
Notifications
You must be signed in to change notification settings - Fork 39
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
How to use module.exports? #39
Comments
plugin doesnt appear to be using node so well. |
@philipbeadle The test code is executed in a sandbox. We have not exposed everything to the sandbox yet, because we are still trying to figure out what a test runner code will need :-) Looks like we overlooked @renjithgr We need to improve the |
I've definitely had some weird errors trying to fully integrate I had trouble selecting values from combo boxes through methods like http://webdriver.io/api/action/selectByName.html However, CodeceptJS uses |
The solution will be custom implementation of All of these would go to |
Awesome, so glad you're onto it :) |
Signed-off-by: Kaustav Das Modak <kaustav.dasmodak@yahoo.co.in>
@philipbeadle @ivanbportugal I have pushed a change which addresses most of the issues raised here. It will be very helpful if you can build from source and test and let us know. |
Fix in #43 addressed this 🎉 |
Awesome Ill give it a crack this weekend. |
Sorry for the radio silence... been busy. I'll definitely check this out when I get a chance. I'll let you know if I have any issues integrating with webdriver.io since that's what I was trying to do in the first place :) |
Hi Ivan Ive added a new brnach on my demo to try to figure this out Have a look at this and see if you can figure out why the code in the driver.js file doesnt execute. |
I have done a git pull on gauge-js, packaged it and installed the plugin in this project so it should have the latest code which is supposed to pick up module.exports. |
@philipbeadle Sorry for the delay. I was away for a couple of weeks. Did I'll keep this issue reopened till this gets sorted. |
Nope, couldnt get it to work. |
@philipbeadle I have created an example at https://github.com/getgauge-contrib/gauge-js/tree/master/examples. This will eventually contain code examples of all the features. For now, I have added I took a quick look at the demo that you have created and I think the issue may be in the way your are creating the driver. When the variable is not in scope and gets repopulated each time. I could not find anything wrong with I'll try to take a deeper look next week. If I can, I'll send you some suggestions on how the code can actually work. |
This seems to work now. I have tested this over some time. |
Hi :)
How do i use module.exports so i can set up things like a common instance of a browser driver. I'd like to do this.
But I keep getting
Cheers
Phil
The text was updated successfully, but these errors were encountered: