Large language models (LLMs) have emerged as powerful tools in the field of AI, transforming various industries through their capacity…
Development
Deep learning is crucial in today’s age as it powers advancements in artificial intelligence, enabling applications like image and speech…
Facing issue to read content after clicking an element in Selenium. I have tried with below code:
if(webElement2.isDisplayed()) {
webElement.explicitWaitToClickElement(4,webElement);
webElement2.click();
}
String tagContent = (String) ((JavascriptExecutor)
BrowserUtilities.getDriver()).executeScript(“return arguments[0].innerText;”, webElement2);
I am trying to get the name and the price information from this website with XPath. When i write my XPath expression down in the search bar it locates correctly in the chrome. But in VSC it doesn’t work. I get nameHtml is null error. This is the only element that has style__Text-sc-__sc-1nwjacj-0 iwTTHJ sc-dd9e2587-8 dsYcan class. Is there a problem with my expression or the code ?
Thanks
my code:
public class Main {
public static HtmlPage getDocument(String url) {
HtmlPage page = null;
try (final WebClient webClient = new WebClient()) {
webClient.getOptions().setCssEnabled(false);
webClient.getOptions().setJavaScriptEnabled(false);
page = webClient.getPage(url);
} catch (IOException e) {
e.printStackTrace();
}
return page;
}
public static void main(String[] args) throws IOException {
WebClient webClient = new WebClient();
webClient.getOptions().setCssEnabled(false);
webClient.getOptions().setJavaScriptEnabled(false);
HtmlPage page = getDocument(“https://getir.com/en/category/fruits-veg-tBYm30SlS9/”);
HtmlElement nameHtml = page.getFirstByXPath(“//div[@class = ‘style__Text-sc-__sc-1nwjacj-0 iwTTHJ sc-dd9e2587-8 dsYcan’]”);
System.out.println(nameHtml.asNormalizedText());}
Workload Automation (WLA) offers a unified solution for managing complex, repetitive tasks, providing significant benefits to IT teams and businesses by improving efficiency and operational accuracy. In this article, we will learn what is workload automation, its advantages, disadvantages, and the following. What is Workload Automation (WLA) Workload Automation (WLA) is the process of using…
The post What is Workload Automation? Detailed Tutorial appeared first on Software Testing Material.
A UI component designed for creating customizable AI chatbot widgets using React.js, TypeScript, and OpenAI API. The post Customizable AI…
Top News Google DeepMind’s new AlphaFold can model a much larger slice of biological life Google’s DeepMind has unveiled AlphaFold…
AudioDreamz EcoSystem: The Future Awaits For You Inside! Your gateway to speak to imaginary characters, tutors and brand ambassador robots…
Comments Source: Read MoreÂ
Today, Perficient is thrilled to announce that four of our colleagues have been named in the 2024 CRN Women of…
Modern AEM can serve content in a headless manner across multiple channels, be they React or Vue apps, native mobile…
Last week, I had the privilege of attending our Accelerate Conference in St. Louis where I learned that Perficient’s secret…
Laracon Australia will be bringing you more than ever before in a new city at a bigger venue; the QUT…
The MITRE Corporation has officially made available a new threat-modeling framework called EMB3D for makers of embedded devices used in critical infrastructure…
A Korean cybersecurity expert has been sentenced to prison for illegally accessing and distributing private photos and videos from vulnerable…
AWS Database Migration Service (AWS DMS) is a managed migration and replication service that helps move your databases to AWS…
In this post, we walk you through performing schema changes and common maintenance tasks such as table and index reorganization,…
Last year, we introduced the MongoDB Atlas Power BI Connector, a certified solution that has transformed how businesses gain real-time…
The web is in a constant state of change. What we build today will inevitably need to adapt tomorrow. And…
Anomaly detection has gained traction in various fields such as surveillance, medical analysis, and network security. Typically approached as a…