- Use page objects
- avoid protocol methods and prefer commands
- don't use timeouts unless you have a good reason
- use waitFor, waitForVisible etc
- avoid caching elements
- avoid arbitrary pause() calls
- use mocks
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import bs4 | |
def xpath_soup(element): | |
# type: (typing.Union[bs4.element.Tag, bs4.element.NavigableString]) -> str | |
""" | |
Generate xpath from BeautifulSoup4 element. |
A Webhook, in simple terms, is a user-defined HTTP callback. It is a mechanism for the system to notify you about an event.
In our case, we need to send messages to a particular channel in slack. Slack calls in Incoming Webhook. It is a mechanism
to send messages to your Slack Channel from external sources. These external sources could be any application or service
that is capable of sending a JSON payload
over HTTP into a Slack Channel. Each Channel will be identified by a
unique Incoming Webhook URL to which you can post the message from outside. This configuration is done via the Integrations for your channel.
- Naviagte to the Incoming Webhook URL. Click the hyper link
incoming webhook integration
below the heading Incoming Webhooks. - You will be asked to enter your team URL, followed by your slack credentials.
- Once you have completed the above step, you will see the wizard kind of webpage to
There are lot of libs for the React Native and often it is not easy to choose the right one for the job. This is a collection of useful libs I've tried (or seen in use) over the years which worked the best for me.
Essential:
- Secure storage - https://www.npmjs.com/package/rn-secure-storage
- Navigation - https://www.npmjs.com/package/react-navigation
- Device info - https://www.npmjs.com/package/react-native-device-info
- Network info - https://www.npmjs.com/package/@react-native-community/netinfo
- Push notifications - https://www.npmjs.com/package/react-native-push-notification
- Permissions - https://www.npmjs.com/package/react-native-permissions