we have following code on page which has angular ng-if condition. ng-if condition will execute dynamically and pickup tags as per requirements. I have observed on html page that everything is working. I observed following html code after inspecting page. If I print innerHTML of parent element by selenium then I found As per my understanding, Selenium DOM is not
Tag: selenium-webdriver
How to get browser name using Selenium WebDriver with Java?
I have a test case and need to execute based on the browser name i.e. IE or Chrome. In this test case some part will depend on browser type. How will I get the browser name in between the execution? Example if it is IE, I need to pass the data. If it is Chrome browser, I need to select
Going through Chrome://settings by Selenium
I am using Java and Selenium to write a test, I use the code below to get into Chrome:setting But when the page is open I can not find any of its web Elements, for example when I try to find “show advanced setting….” by this code it throws an error saying that “no such element: Unable to locate element”
What is the difference between getText() and getAttribute() in Selenium WebDriver?
Both are used to get the WebElement value in between tags. Is my assumption right? If wrong, please elaborate. Answer getAttribute(attr1) you get ‘a’ getAttribute(attr2) you get ‘b’ getAttribute(attr3) you get ‘c’ getText() with no parameter you can only get ‘foo’
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
Selenium Select – Selecting dropdown option by part of the text
The class Selenium Select has 3 methods of different option selection: selectByIndex selectByValue selectByVisibleText Now, I have a situation where I want to select an option by some text that partially appear in one of the options visible text (don’t want to expose myself to changes in the WHOLE text). For example: And i want to select this option only
selenium webdriver move slider on left side
I want to move slider on left side of slider-bar. However, selenium webdriver moves it to right side but it does not move to left side. I want to move slider to 25% of total width of slider-bar. I am using below given code with java 1.8 with selenium 2.44. I have tried all the option using up,down,left,right arrow key
Best way to store locators
I’m following page object design pattern for Selenium automation and I can guess that many people store locators in .properties file and access them in code. It seems great to keep locators at separate place. Since, I haven’t work on any big project for Selenium automation, I would like to know thoughts on following so that I can avoid problems
Which wait is more preferred in selenium Webdriver using Java? (Implicit or Explicit) [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 1 year ago. Improve this question I am aware of the differences between them and how they actually behaves during execution. My Question is which one is
Exception in thread “main” cucumber.runtime.CucumberException: No backends were found
I am developing my Selenium-JVM framework with Cucumber and while running my first feature got below error. Please help. How did I launch the feature – Right click on feature file Select Run As -> Cucumber Feature Immediate Exception – What I have in code – Launcher.java – Feature file – List of Dependencies added to list – My JVM