Skip to content
Advertisement

Tag: selenium

How to get WebElement text with selenium

Please see the following element: Find my element: So after found this div and get the text using selenium with getText or getAttribute(“innerHTML”) the return: So my question is how to get only the last line without this x Answer The text you want is present in a text node and cannot be retrieved directly with Selenium since it only

Cucumber feature file does not identify the steps

I have written my firsy cucumber feature file. When I run the feature file as Cucumber Feature, I get below errors “WARNING: Cucumber-JVM’s –format option is deprecated. Please use –plugin instead.” – I used “plugin” in my @CucumberOptions of runner class, but still getting the same error 2.It says I do not have any scenario and steps Feature: Validate Modular

Selenium logging in Java – best practice? [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 7 years ago. Improve this question What are the current best practices for logging selenium webdriver activity? Are there any out-of-the-box tools that hook in to native

How to implemet singleThreaded=true in TestNG

In TestNG i am trying to undertand the use of singleThreaded=true attibute of @Test Annotation .I already referred http://testng.org/doc/documentation-main.html and http://beust.com/weblog2/archives/000407.html but didn’t got much help . My Question : Why do we need to execute method on single thread. Running on multiple thread can save out time. Note : In the example given at http://beust.com/weblog2/archives/000407.html He said :: “the

Advertisement