add wait for sms py

This commit is contained in:
2022-03-23 14:34:17 +01:00
parent 840d66c59d
commit 3593a15904
4 changed files with 146 additions and 5 deletions
+3 -1
View File
@@ -128,7 +128,8 @@ class CommandorPage:
self.page.fill(OTP_FIELD_ID, otp)
def reset_air_plan_mode(self):
pass
print("will close ")
self.browser.close()
def publish_message_to_queue(self, contact: ContactPojo, message: str, url: str):
# create the message
@@ -144,6 +145,7 @@ class CommandorPage:
credentials=_credentials))
channel = connection.channel()
# default exchange, for 'hello' queue
print("will publish message:" + result.to_json())
channel.basic_publish(exchange='', routing_key=APPOINTMENT_QUEUE,
body=result.to_json())
connection.close()