Pomegranates are rich in nitrates that support blood pressure regulation. Credit: Westend61 / Getty Images
Foods rich in nitrates, like pomegranates, leafy greens, and beets, help relax blood vessels for better blood flow.
Other foods rich in potassium, like bananas, or fiber, like oats, can help support healthy blood pressure.
Healthy fats can also help improve inflammation and protect heart health.
Pomegranate juice is often suggested as a way to naturally support healthy blood pressure, and research shows it may have potential. But it’s not the only option. Here are six foods or food categories that could offer similar benefits.
1. Leafy Greens
Credit: Ekaterina Smirnova / Getty Images
Like pomegranates, leafy greens like kale and spinach are rich in naturally occurring nitrates, according to Geoffrey Abbott, PhD, a professor of physiology and biophysics in the School of Medicine at UC Irvine. Your body converts nitrates into nitric oxide, a key molecule involved in blood pressure regulation.
“Nitric oxide diffuses into vascular smooth muscle cells, where it activates an enzyme called soluble guanylate cyclase,” Abbott told Health. This relaxes “the vascular smooth muscle and dilates the blood vessels, which can in turn reduce vascular resistance and lower blood pressure.”
Leafy greens are also an important part of the DASH (Dietary Approaches to Stop Hypertension) diet, he added. “They contribute to blood pressure control not just via nitrates, but also by replacing high-sodium, ultra-processed foods, consumption of which can increase blood pressure,” Abbott said.
2. Bananas and Other Potassium-Rich Fruits
Credit: FotoDuets / Getty Images
Fruits high in potassium, like bananas, avocado, and cantaloupe, encourage your body to get rid of sodium, which in turn can lower your blood pressure, said Liz Weinandy, MPH, RDN, LD, a registered dietitian nutritionist and instructor of practice at The Ohio State University Wexner Medical Center.
“When blood pressure is high, your body works to excrete more sodium,” she told Health. “Eating more potassium-rich foods encourages this, and in turn, causes blood vessels to relax.”
3. Beets
Credit: Stefan Tomic / Getty Images
Beets are rich in two things that support healthy blood pressure: dietary nitrates and potassium, said Michelle Routhenstein, MS, RD, CDCES, CDN, a preventive cardiology dietitian at EntirelyNourished.
Oats are packed with a type of soluble fiber called beta-glucan, which forms a gel in the gut and helps your body get rid of cholesterol, Abbott explained. Eating oats regularly may improve your cholesterol levels, which could “help reduce plaque accumulation and can contribute to maintaining blood pressure in a healthier range,” he said.
Still, the evidence for oats directly lowering blood pressure is mixed, Weinandy noted. “Some have shown they benefit BP by lowering it, and others show no effect,” she said. “Others show some benefit for one gender but not the other.”
5. Fatty Fish
Credit: Adél Békefi / Getty Images
Fatty fish, such as salmon, sardines, and mackerel, are rich in omega-3 fatty acids, particularly EPA and DHA, Routhenstein said. These healthy fats help reduce inflammation and widen blood vessels, making it easier for blood to flow.
“Regular intake of fatty fish, [or] at least two to three servings per week, is associated with reduced cardiovascular risk, improved lipid profiles, and healthier blood pressure,” she told Health.
Abbott pointed to a meta-analysis showing that about two to three grams of EPA and DHA per day can modestly lower blood pressure, especially in people with untreated hypertension.
6. Dark Chocolate
Credit: Carol Ungureanu / Getty Images
Moderate consumption of dark chocolate—especially varieties with 70% cocoa or higher—has been linked to small but meaningful reductions in blood pressure, said Jacqueline Vernarelli, PhD, an associate professor and program director for the Master of Public Health Program at Sacred Heart University. She attributes the effect primarily to cocoa’s high content of compounds called flavanols.
"Cocoa flavanols make arteries more flexible and less stiff, which reduces resistance to blood flow," Vernarelli told Health. They may also protect blood vessels from oxidative damage, improving their ability to dilate and respond to pressure changes.
Adding Blood Pressure Lowering Foods to Your Diet
Add blood pressure-supporting foods slowly and intentionally to your diet, focusing on one meal or snack at a time, suggested Routhenstein. Jumping in too quickly may cause digestive discomfort from the extra fiber and can be difficult to sustain. “Gradually building these foods into your routine helps create lasting, manageable habits for both blood pressure and overall heart health,” she said.
Abbott recommended simple swaps, like replacing processed meats with fatty fish one or two nights a week, or switching sugary cereal for oats here and there.
Before diving in, he added, it’s a good idea to check in with a healthcare provider or a dietitian, especially if you have hypertension or take blood pressure-lowering medications.
Selenium is an open-source, most popular web automation testing tool that supports multiple browsers & OS. XPath in Selenium is an XML Path and a syntax useful for locating an element on a web page. Locating any element on the web page uses XML path or XPath expression. Further, XPath in Selenium is useful for navigating through the HTML structure of the web page.
Moreover, XPath uses HTML DOM structure to find any element on a web page for both HTML and XML documents.
The syntax for XPath In Selenium
XPath in Selenium holds the element’s location on the web page. The basic syntax for XML Path Selenium is as follows-
Xpath=//tagname[@attribute="value"]
The meaning of each expression in the syntax is-
// : Choose the existing node.
Tagname: Particular node’s tagname.
@: This symbol denotes the “Select” attribute.
Attribute: Node’s attribute name.
Value: Attribute’s Value.
Become a master of Selenium by going through this HKRSelenium Training!
XML Document
The XML documents are the text files that contain XML data, including elements and other markups, in a sequential package. Further, it can include a wide variety of data such as numbers databases, numbers of a mathematical equation, etc. You can understand XML document with an example:-
Kumar
AK & Co.
032456123
Here, the above code is divided into two parts- Document Prolog & Document Elements. Let us discuss them in brief.
Document Prolog
The document prolog appears at the top of the document, beforE the root document element. It includes XML and Document type declaration.
Document Elements
These major building blocks of XML segregate the document into different sections. Each of these document sections perform a particular purpose. Moreover, you can easily segregate a document into different sections so that search engines can use it. Further, these document elements can be the containers having text and other elements combined.
Types of XPath
Absolute XPath:
Relative XPath:
Absolute XPath
In Selenium, the absolute XPath is the direct path to find the element. This Xpath begins with the “/” (Slash) symbol and helps select the element from the root. The major drawback of this XPath is that if you change the path of the element or attribute, the absolute XPath will fail.
Relative XPath:
The Relative XPath in Selenium begins with the double forward slash “//” symbol and from the middle of the HTML DOM. You can search elements anywhere on the web page as it doesn’t need to write a lengthy Xpath. This XPath is mainly considered as it is not a complete path from the root element.
For example: //input[@id=‘ap_email’]
Suppose You launch Google Chrome and navigate to google.com. Then locate the search bar utilising XPath. By analysing the web element there is an input tag and attributes like class and id. Utilise the tag name and given attributes to create XPath that will locate the search bar.
If you want to Explore more about Selenium? then read our updated article –Selenium Tutorial
Click the Elements tab and press Ctrl + F to open a search box in chromes developers tool. Write XPath string selector and it will try to search based on that criteria. In the image given above, it has an input tag. //input implies tagname. Use the name attribute and pass ‘q’ as its value. It provides XPath expression as shown below:
//input[@name=’q’]
It has focused on the element that implies this specific element was located utilising XPath.
If you want to Explore more about Selenium? then read our updated article –Selenium Tutorial!
Check out our Latest Tutorial video. Register Now Selenium Online Course to Become an expert in Selenium.
Acquire Selenium with jenkins certification by enrolling in the HKR Selenium with jenkins Training program in Hyderabad!
Selenium Certification Training
Master Your Craft
Lifetime LMS & Faculty Access
24/7 online expert support
Real-world & Project Based Learning
XPath Functions
Automation utilizing Selenium is unquestionably an incredible innovation which gives numerous approaches to distinguish an article or component on the website page. Be that as it may, in some cases we do deal with issues in recognizing the articles on a page that have similar credits. Some cases can be: components having similar credits and names or with more than one button with similar name and ids. It’s trying to train selenium to distinguish a specific item on a website page and it is the place where XPath functions to serve as the hero.
Selenium involves different functions. The three of the most broadly utilized functions are given below:
1) Basic XPath
The basic XPath expression selects nodes or a list of many nodes based on various elements or attributes such as ID, Name, ClassName, etc. It selects them from the XML documents. The syntax we can use for the basic XPath is –
Xpath=//input[@name="uid"
2.Contains()
It is a method used in XPath expression when the value of an attribute or element dynamically changes. You can easily find the elements with a partial text using the “Contains” feature in the XPath expression. Now understand this with the below example.:-
Xpath=//*[contains(@type,'sub')]
The above example denotes that the full value of the element type is submitted, but we use the partial text ‘sub’ here to find the element. Thus, in the above example, we tried to find the element by giving a partial text of the attribute “submit”.
3) Using OR & AND
Here, we use two conditions, first or second condition, among which one condition must be “True” to execute it. This method is still applicable if any one or both conditions are “true”. It means that any conditions should be true to find the element. The expression we can use for this is-
Xpath=//*[@type="submit" or @name="btnReset"]
The above XPath expression will help determine whether a single or both conditions are ‘True’.
Similarly, in the “And” XPath expression, also we use two conditions, but both conditions should be “true” to locate the element. If any one of the conditions becomes “false”, then the expression cannot find the element. The syntax we can use for this function is-
Xpath=//input[@type="submit" and @name="btnLogin"]
4) Xpath Starts-with
The function Xpath-Starts-with() in the Xpath functions is useful to find the element whose attribute value changes in some conditions. Here the value changes with the refresh of the page or by performing dynamic actions on the webpage. In this method, the initial text of the attribute should be in parallel to locate the element whose attribute value changes interactively.
Further, you can also find the elements whose attribute value doesn’t change or remain static. You can understand this function’s use by the following example:-
Xpath=//label[starts-with(@id,'message')]
The above syntax shows that two different elements start with the initial id “message”. Here, you can use the Xpath-starts with function to check whose attribute value changes or remains static.
Subscribe to our YouTube channel to get new updates..!
5) XPath Text() Function
In Selenium WebDriver, the function XPath Text() is a built-in function useful to locate elements based on the web element’s text. Using this function, you can find the same text element. Moreover, the elements that you locate must be in a string format.
Xpath=//td[text()='UserID']
Using the above expression having text function, you can locate the element that will show the exact match of the text.
6) XPath axes methods
This method in XPath functions is useful for finding complex or changing elements. However, we can see the following XPath axes methods which we can use:-
a) Following- It is useful to select all the elements in the document of the existing node(). The expression you can use for this method is-
Xpath=//*[@type="text"]//following::input
b) Ancestor- The ancestor axes method is useful to select all the ancestor elements of the existing node, like parents, grandparents, etc. Here, the expression you can use is-
c) Child- This axes method selects all the child elements in the documents’ current node. The expression you can use here is-
Xpath=//*[@id='java_technologies']//child::li
d) Preceding- This method helps select the nodes that come before the existing ones. Here is the example expression:-
Xpath=//*[@type="submit"]//preceding::input
The above expression helps to identify all the input elements before the currently given nodes.
e) Following-sibling- This method helps to select the following siblings of the existing node. All the siblings will be equivalent to the existing node, and the method will find the sibling next to the existing node. Moreover, the syntax you can use here for this method is-
f) Parent- It helps to select the parent from the existing node of the element. The following is the syntax you can use here.
Xpath=//*[@id='rt-feature']//parent::div
Many div(s) match with the parent, but if you want to focus on a specific element. For this you can use the below xpath syntax-
Xpath=//*[@id='rt-feature']//parent::div[1]
g) Self- In this method, it selects the existing node where it selects itself only. That means the node here is the “self”. The expression you can use for self is-
Xpath =//*[@type="password"]//self::input
h) Descendant- It helps to select the descendants of the existing element where it recognizes all the element descendants of the existing element.
Xpath=//*[@id='rt-feature']//descendant::a
Selenium Certification Training
Weekday / Weekend Batches
Conclusion
XPath or an XML Path is used to locate any element or navigate through the HTML structure of a webpage. It is generally used for automation purposes and in cases where it is difficult to find elements using locators like name, class, ID, etc. However, it is the most important among the locators useful in Selenium to identify web elements. Also, it is a handy locator for the testers of web pages.
Thus, learning about XPath in Selenium will help you quickly identify a web element on a web page.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.