add wait for sms py
This commit is contained in:
+3
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user