Ghost.py icon indicating copy to clipboard operation
Ghost.py copied to clipboard

expect_loading on Ghost.click undocumented.

Open andrewchambers opened this issue 10 years ago • 3 comments

click.(expect_loading=True) is needed for form submissions, but this behaviour is totally undocumented, it is needed for all forms that I tried.

andrewchambers avatar Jan 15 '15 11:01 andrewchambers

You can also do g.call('#myForm', 'submit', expect_loading=True).

But yes, the documentation miss few examples.

jeanphix avatar Jan 15 '15 11:01 jeanphix

Yeah - I managed to get it to work eventually :). Cool project.

andrewchambers avatar Jan 15 '15 11:01 andrewchambers

Maybe fill() (https://github.com/jeanphix/Ghost.py/blob/dev/ghost/ghost.py#L683) could have a submit=False argument.

jeanphix avatar Jan 15 '15 11:01 jeanphix