@@ -19,29 +19,29 @@ macro_rules! queries_for_element {
1919 ( $( ( $name: ident, $matcher_type: ty, $options_type: ty) ) ,* , ) => {
2020 paste:: paste! {
2121 impl BoundFunctions {
22- $( pub fn [ < find_by_ $name >] <M : Into <$matcher_type>>(
22+ $( pub async fn [ < find_by_ $name >] <M : Into <$matcher_type>>(
2323 & self ,
2424 matcher: M ,
2525 options: $options_type,
2626 wait_for_options: WaitForOptions ,
27- ) -> Result <Option < HtmlElement > , QueryError > {
28- [ < find_by_ $name >] ( & self . element, matcher, options, wait_for_options)
27+ ) -> Result <HtmlElement , QueryError > {
28+ [ < find_by_ $name >] ( & self . element, matcher, options, wait_for_options) . await
2929 } ) *
3030
31- $( pub fn [ < find_all_by_ $name >] <M : Into <$matcher_type>>(
31+ $( pub async fn [ < find_all_by_ $name >] <M : Into <$matcher_type>>(
3232 & self ,
3333 matcher: M ,
3434 options: $options_type,
3535 wait_for_options: WaitForOptions ,
3636 ) -> Result <Vec <HtmlElement >, QueryError > {
37- [ < find_all_by_ $name >] ( & self . element, matcher, options, wait_for_options)
37+ [ < find_all_by_ $name >] ( & self . element, matcher, options, wait_for_options) . await
3838 } ) *
3939
4040 $( pub fn [ < get_by_ $name >] <M : Into <$matcher_type>>(
4141 & self ,
4242 matcher: M ,
4343 options: $options_type,
44- ) -> Result <Option < HtmlElement > , QueryError > {
44+ ) -> Result <HtmlElement , QueryError > {
4545 [ < get_by_ $name >] ( & self . element, matcher, options)
4646 } ) *
4747
0 commit comments