Added better xpath selectors for the UI elements

This commit is contained in:
2023-05-05 15:01:15 -04:00
parent 26aad47272
commit 19f6b0ff66
3 changed files with 43 additions and 24 deletions
+6 -4
View File
@@ -20,14 +20,14 @@ topic_path = publisher.topic_path(project_id, topic_name)
publisher.delete_topic(request={"topic": topic_path})
print(f"Topic '{topic_name}' deleted.")
'''
# Create a pubsub topic
publisher = pubsub_v1.PublisherClient()
topic_name = "fp-topic-NFL-zipcodes"
topic_path = publisher.topic_path(project_id, topic_name)
topic = publisher.create_topic(request={"name": topic_path})
topic = publisher.create_topic(request={"name": topic_path}, timeout=30)
# Create a Pub/Sub subscription
@@ -38,6 +38,7 @@ subscription = subscriber.create_subscription(
name=subscription_path, topic=topic_path
)
'''
# Publish a message to the topic
# Read the data from the csv file
file_path = "C:/Users/Karen/Desktop/NFL_Cities.csv"
@@ -58,4 +59,5 @@ async def receive_messages():
print("Received message: {}".format(received_message.message.data))
asyncio.run(receive_messages())
asyncio.run(receive_messages())
'''