Galen 2.4.0 pagedump usage
satyasushmachopparapu opened this issue · 4 comments
I'm trying to use pagedump feature to generate spec file automatically. I'm using 2.4.0 latest version of galen and the code looks like this.
GalenPageDump dump=new GalenPageDump("http://gmail.com");
dump.dumpPage(driver,"C:/galen/pageDump/Specs/input.spec","C:/galen/pageDump/dumps/login");
Error Details
Exception in thread "main" com.galenframework.parser.SyntaxException: Unknown statement: base-js id base-js
in C:/galen/pageDump/Specs/input.spec:3
Could anyone please help me here.
your spec file seems to be wrongly formatted. Can you post it here? If it is to big, the first 3 lines until the error should be enough
Thanks Planktom. I was able to resolve the issue with Spec syntax. I'm using the below mentioned syntax to create pagedump for my spec file. I'm using Galen 2.4.0 version.
GalenPageDump dump=new GalenPageDump("URL");
dump.dumpPage(driver, "spec file path","dump path");
But the created dump file is not generating the rules automatically. May I know if I'm using it right? Please help.
@satyasushmachopparapu No Page Dump does not generate rules anymore since of galen version 2.4. Instead there is now a spec generator in Galen which you should use instead http://galenframework.com/docs/reference-working-in-command-line/#SpecGenerator
But you do need to create a page dump first because that one is used as a source for spec generator
@satyasushmachopparapu No Page Dump does not generate rules anymore since of galen version 2.4. Instead there is now a spec generator in Galen which you should use instead http://galenframework.com/docs/reference-working-in-command-line/#SpecGenerator
But you do need to create a page dump first because that one is used as a source for spec generator
Sorry guy, I have already applied your suggestions into my assignments, but it is still not working.