Selenium

20

Solutions

1

Articles & Videos

38

Contributors

Selenium is a portable software testing framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese) to write tests in a number of popular programming languages, including C#, Groovy, Java, Perl, PHP, Python, Ruby and Scala. The tests can then be run against most modern web browsers. Selenium deploys on Windows, Linux, and OS X platforms. It is open-source software, released under the Apache 2.0 license, and can be downloaded and used without charge.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hello, I got, or it appeared; an extension/plugin, https://getfirebug.com/wiki/index.php/Selectors_Side_Panel, that tells me, Go! is the attribute of css selector "input"
<input onclick="showAlert()" value="Go!" type="button">

Open in new window


I've been searching for, what I believe I once saw; driver.findElement(By.cssSelector(input[@attribute = "Go!"])) ;
But this does not work.  How does one use css Selector with an attribute?
0
Free NetCrunch network monitor licenses!
LVL 4
Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Hello,
I'm looking for the right findElement setting for the login button.  I had it working at one time with id="u_0_q", but then it stopped working.  I'm using Window 10 Edge Webdriver
What could work?  The first three lines are the DOM locator.  The first line looks to be a frame, before the login button.
The login button is that of www.facebook.com login
//<label class="uiButton uiButtonConfirm" id="loginbutton" for="u_0_q">
//<input tabindex="4" id="u_0_q" type="submit" value="Log In" data-testid="royal_login_button"
//></label>
				//driver.findElement(By.xpath("html/b[b]/b]ody/div[1]/div[1]/div/div/div/div/div[2]/form/table/tbody/tr[2]/td[3]/label/input")).click();
		//driver.findElement(By.cssSelector("input[data-testid=royal_login_button]")).click();
		//driver.findElement(By.id("u_0_q")).click();
		//driver.findElement(By.cssSelector("input[value=royal_login_button")).click();//absolute not work
		//driver.findElement(By.id("loginbutton")).click();//works for Edge!
		//driver.findElement(By.id("loginbutton")).click();

Open in new window

0
Hello,
I had and now I still have firebug installed on firefox.  The problem I have, and I do not know how it used to be; but when I ran my Selenium Webdriver code (the firefox browser would be openned) and hit F12 the firebug/firepath would be available.  

Am I wrong on this thought?
Now I have to open a separate firefox browser, and when I fit F12, I do get the firebug and firepath.

My thought is that I added some "add-on" that disabled firebug on a selemium webdriver test browser page.
I can't find a way to list the installed add-ons in firefox.  Do you know how?
0
Hello,
I'm looking for an xpath tool, like the one that firefox has.  I have searched and do not find one.  I find xpath helper and Finder for Chrome.
For IE Edge I find nothing.
Is there an xpath for Chrome and Edge?
xpath Finder seems to work on the fact that you already know the xpath.

Can an xpath from firefox be used in Chrome and Edge?
0
Hello, I
The <input name> DOM line below is similar to one that I have used this Webdriver; driver.findElement(By.className("whsOnd zHQkBf"))
to enter my username.  When I click on the button "Next," the page moves on to the page to enter the password.
This is the line for the password;
<input name="password" tabindex="0" class="whsOnd zHQkBf" dir="ltr" spellcheck="false" aria-label="Enter your password" type="password" jsname="YPqjbf" data-initial-value="" data-initial-dir="ltr" autocomplete="current-password" autocorrect="off" autocapitalize="off">

You'll see that the same class name is used, yet the driver.findElement(By.className("whsOnd zHQkBf")) is not working.
Why?  I don't see any other className or id to use.  What can be used?  The test site is gmail.com
0
I would like a crash course in Selenium as a C# developer and prefer to reach versus watching video.

Any good visual tutorials I can read?

It'd be great if there were C# programming exercises as well.

Thanks
0
I am new to using Selenium for web UI testing, but see it as a great tool for that. Can it also be used for load testing?

If so, how does that work? How do you handle concurrency?

Thanks.
0
Was able to launch and close browser 1 only.
            
Error:


java.lang.NullPointerException
      at java.util.Hashtable.put(Unknown Source)
      at java.util.Properties.setProperty(Unknown Source)
      at java.lang.System.setProperty(Unknown Source)
      at newpackage.Launchbrowsers.Browser(Launchbrowsers.java:32)
      at newpackage.Launchbrowsers.main(Launchbrowsers.java:13)

Thanks in advance for any help.
0
In this Selenium test, can you explain what this call to By.XPath is doing exactly?

string referenceLink = browser.FindElement(By.XPath("/html/body/div[@class='container body-content']/div[@class='page-wrap']/div[@class='container']/div[@class='box-container jumbotron border']/div[@class='row'][1]/div[@class='col-sm-12 col-md-6 col-lg-3'][1]/a[@class='thumbnail text-center']")).GetAttribute("href").Remove(0, 8);
0
What kinds of things do I need to know in order to get started with automated tests with Selenium? I have experience with unit testing, but no front-end testing yet.

I am interested in smoke testing, best practices, what kinds of guidelines to use when making a test plan with Selenium.

I am interested in hearing how other people use it...

Thanks.
0
Microsoft Certification Exam 74-409
LVL 1
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Hello,
I have a couple of "unresolved" issues.  I tried fixing my problems using the options within Eclipse, but nothing works.
I know that I have in import/install the org.opeqa.selenium API, yet can't find the API at org.openqa, and I know that my Selenium API needs to be installed as well.  I thought I did have it via Selinity - Selenium plugin, but I guess not.
These are my issues;
import org.openqa...cannot be resolved
FirefoxDriver cannot be resolved to a type
Method undined for WebDriver

This is the code;
import org.junit.Test;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class MyFirstWebdriverTest<WebDriver> {
      @Test
      public void checkSeleniumHQinFirefox(){
        WebDriver driver = new FirefoxDriver();
        driver.get("http://seleniumhq.org");
        driver.quit();
      }
}
0
Hello,
I'm working with Eclipse Neon 2 and noticed that under the Help menu there are links to Java EE 5,6, and 7.
Why doesn't Java EE 8 documentation show up?  
How could I install Java EE 8 documentation?

I see that Experts Exchange still does not have Eclipse as a topic to support.  
I hope my questions gets answered.
0
Hello,
I'm looking for a website that gives a much deeper explanation about the Selenium api.

I found this site, yet it is not enough to fully understand; for what and how to use the api;
https://seleniumhq.github.io/selenium/docs/api/java/index.html?overview-summary.html

Could you suggest a better site?
0
Hello, in the code below, what is the ".using...." and ".build()" below.  I have not used this "dot" syntax.
Is it associated with the newly created "service" like service.usingDriverExecutable  and service.build ?

   {@literal @BeforeClass}
   public static void createAndStartService() {
     service = new ChromeDriverService.Builder()
         .usingDriverExecutable(new File("path/to/my/chromedriver.exe"))
         .usingAnyFreePort()
         .build();
     service.start();
   }
0
untitled.png
How to handle these kind of popups using selenium  web driver.
Due to some security reasons I cant access any external tools like Auto IT  to achieve this.
is there a way to do it using selenium web driver
0
Hi,

I try to write a little java code for Selenium. I use current (Neo) Eclipse version.
Everything work fine so far. But in the Java sample codes for Selenium I always find te keywords:

Thread.sleep(100);
or just
sleep(100);

But I cannot use them. Seems I do not have an refernece to them in my code. Do I miss an Import?

Ingo
0
Hello,  Questions for Eclipse are still "Proposed," and Selenium appears to be supported here.  Allow me to ask; to understand the Selenium API should one know Interactive Data Language (IDL)?
I googled for  an answer, yet did not find any.
It is used here; https://www.w3.org/TR/2017/WD-webdriver-20170201/ and here; https://dom.spec.whatwg.org/#concept-attribute to explain this; 3.9.2. Interface Attr
thanks
0
I am new to Selenium and see there is the free version and a paid version.

What does it cost?

I will use it .NET and ASP.NET websites.

What are the big reasons for buying a license?

Thanks.
0
I upgraded selenium with latest version and firefox with latest version too. Now I am getting error
java.lang.UnsupportedClassVersionError: org/openqa/selenium/support/ui/LoadableComponent : Unsupported major.minor version 52.0
0
I need to find a combination of Python, Selenium and Browser version that works best on Windows 7.  I have tried Python 3.5.2, Selenium 2.53.6 and various versions of Firefox but none of them will do what I need done.

I just need to select all of a page in front of me that is a cms page so it isn't showing the html tags or body tags.  The source code isn't a solution either because it is a cms page it leaves out just the content in the window that selenium navigates to. I have tried xpath and that is why I am thinking I need to make sure they all 3 work together well because it shows the following error.

(ff2-32) C:\Users\Randal J. Watkins\ff2>python expertsbrazil_clean.py
Traceback (most recent call last):
  File "expertsbrazil_clean.py", line 82, in <module>
    button = driver.wait.until(EC.visibility_of_element_located((By.CLASS_NAME,
"button.blogg-button.blogg-collapse-right")))
  File "C:\Users\RANDAL~1.WAT\Envs\ff2-32\lib\site-packages\selenium\webdriver\s
upport\wait.py", line 80, in until
    raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
Stacktrace:
    at FirefoxDriver.prototype.findElementInternal_ (file:///C:/Users/RANDAL~1.W
AT/AppData/Local/Temp/tmpgh8ji3io/extensions/fxdriver@googlecode.com/components/
driver-component.js:10770)
    at FirefoxDriver.prototype.findElement (file:///C:/Users/RANDAL~1.WAT/AppDat
a/Local/Temp/tmpgh8ji3io/extensions/fxdriver@googlecode.com/components/driver-co

Open in new window

0

Selenium

20

Solutions

1

Articles & Videos

38

Contributors

Selenium is a portable software testing framework for web applications. Selenium provides a record/playback tool for authoring tests without learning a test scripting language (Selenium IDE). It also provides a test domain-specific language (Selenese) to write tests in a number of popular programming languages, including C#, Groovy, Java, Perl, PHP, Python, Ruby and Scala. The tests can then be run against most modern web browsers. Selenium deploys on Windows, Linux, and OS X platforms. It is open-source software, released under the Apache 2.0 license, and can be downloaded and used without charge.

Top Experts In
Selenium
<
Monthly
>