@@ -815,6 +815,27 @@ def ele_contain_param_attr_exist(context, param=None, selector=None, attr_name=N
815
815
g_Context .step .ele_contain_param_attr_exist (context , param , selector , attr_name , attr_value )
816
816
817
817
818
+ @step ("the [{param}] contained by the element [{selector}] element value is [{attr_value}]" )
819
+ @FlybirdsReportTagInfo (group = "element" , selectors = {
820
+ "path" : [{"type" : "text" , "value" : "param" , "name" : "文本" },
821
+ {"type" : "path" , "value" : "selector" , "name" : "元素" }]},
822
+ verify = {"type" : ErrorFlag .text_equ , "value" : "attr_value" },
823
+ verify_function = "ele_verify_text_error_parse" )
824
+ @VerifyStep ()
825
+ @ele_wrap
826
+ def ele_contain_param_attr_exist (context , param = None , selector = None , attr_value = None ):
827
+ """
828
+ 包含参数[{param}]的元素[{selector}]的value为[{attr_value}]
829
+ The specified selector element string exists in the page
830
+ :param context: step context
831
+ :param param: element value.
832
+ :param selector: locator string for selector element (or None).
833
+ :param attr_name: attribute name
834
+ :param attr_value: attribute value
835
+ """
836
+ g_Context .step .ele_with_param_value_equal (context , param , selector , attr_value )
837
+
838
+
818
839
@step ("the [{param}] contained by the element [{selector}] has attribute [{attr_name}] contain value [{attr_value}]" )
819
840
@FlybirdsReportTagInfo (group = "element" , selectors = {
820
841
"path" : [{"type" : "text" , "value" : "param" , "name" : "文本" },
@@ -944,6 +965,22 @@ def scroll_ele_into_view(context, selector=None):
944
965
g_Context .step .scroll_ele_into_view (context , selector )
945
966
946
967
968
+ @step ("upload image to element[{selector}]" )
969
+ @FlybirdsReportTagInfo (group = "element" , selectors = {
970
+ "path" : [{"type" : "path" , "value" : "selector" , "name" : "元素" }]}, verify_function = "common_error_parse" ,
971
+ action = ActionType .upload )
972
+ @ele_wrap
973
+ def scroll_ele_into_view (context , selector = None ):
974
+ """
975
+ 移动元素[{selector}]至可视区域
976
+ Full screen swipe in the specified direction to find the specified
977
+ selector element
978
+ :param context: step context
979
+ :param selector: locator string for selector element (or None).
980
+ """
981
+ g_Context .step .upload_image_to_ele (context , selector )
982
+
983
+
947
984
@step ("clear [{selector}] and input[{param2}]" )
948
985
@FlybirdsReportTagInfo (group = "element" , selectors = {
949
986
"path" : [{"type" : "path" , "value" : "selector" , "name" : "元素" },
0 commit comments