Giter Site home page Giter Site logo

seleniumhq / seleniumhq.github.io Goto Github PK

View Code? Open in Web Editor NEW
946.0 37.0 1.2K 2.31 GB

Official Selenium website and documentation

Home Page: https://selenium.dev

License: Apache License 2.0

Shell 2.06% HTML 83.57% SCSS 12.38% JavaScript 1.99%
hugo

seleniumhq.github.io's People

Contributors

alaahong avatar alenros avatar alexandradenet avatar automatedtester avatar bonigarcia avatar boris779 avatar connert avatar dependabot[bot] avatar diemol avatar github-actions[bot] avatar greavox avatar harsha509 avatar hiroksarker avatar ivanrodjr avatar jmartinezpoq avatar krmahadevan avatar kzhirata avatar luisfcorreia avatar manoj9788 avatar nvborisenko avatar nwintop avatar pallavigitwork avatar pujagani avatar renovate[bot] avatar selenium-ci avatar shs96c avatar sindhudiddi avatar testbot206 avatar tetration avatar titusfortner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

seleniumhq.github.io's Issues

SearchContext link broken on Locating elements documentation pag

๐Ÿ› Bug Report

A link is broken in the documentation

To Reproduce

Click this link:
https://selenium.dev/selenium/docs/api/java/org/openqa/selenium/SearchContext.html%3ESearchContext

Or you can navigate to the Locating elements page (link below) and find this sentence, then click the SearchContext link:
You can do this because both the WebDriver and WebElement types implement the SearchContext interface.

Link to Locating elements page:
https://selenium.dev/documentation/en/getting_started_with_webdriver/locating_elements/

Expected behavior

I expected to see a page describing
selBug

Environment

Google Chrome Version 78.0.3904.108 (Official Build) (64-bit)
Microsoft Edge

i was using selenium since last week and now when i rum the code it says there is no module called selenium

I am working on a school project and i have to use selenium. I was using selenium for a long time. I stop working on that project for a week and yesterday i came back to continue it and i tried to run it and it is saying that there is no module named 'selenium'. I uninstall it and re-install it many times , also i re-install vsc(visual studio code) and i re-install python 3.8 . No, i am not using a virtual environment.
Btw the way that i import it is :: from selenium import webdriver.
If you want to give you more dilates about the code that might be useful to find the problem just ask

Some confusion with the Worst Practices > Captcha page

On the web page: https://www.selenium.dev/documentation/en/worst_practices/captchas/

When the page says,

There are two primary strategies to get around CAPTCHA checks:

Disable CAPTCHAs in your test environment
Add a hook to allow tests to bypass the CAPTCHA

It's hard to tell if you are suggesting these options or if you are saying that these are a bad practice, because this information is located under the Worst Practices section.

Perhaps you could explicitly say, "We suggest that you... "

.xlsm file type being changed

๐Ÿ› Bug Report (bugs found in a recent release)

I am using Java + Selenium to test an Angular application in Chrome.

The app requires a .xlsm file upload. When I run my automation code locally, this file upload is successful. However, when I run my code on the grid, my app throws an 'incorrect file type' validation error (because the app will only accept .xlsm files). It appears that running on the grid is altering my file type. Does Selenium have a bad relationship with .xlsm files?

EdgeDriver name doesn't match

๐Ÿ› Bug Report

image

hello,I download the python code by pip3 and then i found that the .exe name is not the same as the file download on the microsoft which named as msedgedriver.exe

So it's different from Chrome And FireFox, they are the same name.

Rename the .exe file can solve the problem.
But I think modify MicrosoftWebDriver.exe to msedgedriver.exe is a good idea.๐Ÿ˜„
It will be nice to the beginners.
Thank you.

OS: Windows 10
Browser: New Edge
Browser version:79.0.309.71

RSS feed for the blog

๐Ÿš€ Feature Proposal for the site or the documentation

RSS feed for the blog.

Motivation

I want to follow the Selenium blog without manually checking the website from time to time.

Example

Subscribe via RSS feed.

Redirect old links from exceptions to new targets on page

๐Ÿš€ Feature Proposal for the site or the documentation

Exceptions from Selenium 3.141.59 show up like:

org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method" : "css selector" "selector": " *[name='card']"}
(Session info: chrome=78.0.3904.108)
For documentation on this error, please visit: https://www.seleniumhq.org/exceptions/no_such_element.html        

If you open that link to https://www.seleniumhq.org/exceptions/no_such_element.html it redirects to the exceptions page https://selenium.dev/exceptions/. It would be nice if it redirected to https://selenium.dev/exceptions/#no_such_element so that the exact exception that was thrown is shown.

Motivation

This would make it easier for people to read the docs about their exception.

Example

Provided above I think?

No Health Check URL for Nodes.

๐Ÿ› Bug Report

Trying to run any selenium node containers in a k8s cluster you can get into a state where the node is not accepting any more tests. Normally this is what a health endpoint is for, helping us know when the node is not working.

To Reproduce

Try to use the hub health check url on a node.
http://$HOST:$PORT/wd/hub/status

Tell us the detailed steps to reproduce it:
Try using curl on this URL on a node and you get connection refused.

Expected behavior

What do you expect to happen? How should have it worked?
I expected to get back a JSON response just like the hub would provide.

Environment

Your grid-node containers are what I am using.
https://hub.docker.com/u/selenium

CSS issue on https://selenium.dev/downloads/ when in responsive mode

Chrome 78
Go to: https://selenium.dev/downloads/
Resize the browser to trigger responsive mode

Result: CSS issue, see screenshot
image

๐Ÿ› Bug Report

Did you find something wrong with the site or the documentation? Please describe
your finding in a clear and concise way.

To Reproduce

How can we reproduce the issue you found? Please tell us how we can do that.
Don't forget to add:

  • Absolute link where the issue was found
  • Screenshot (if needed)
  • The environment you had when the issue was found (see below)

Tell us the detailed steps to reproduce it:

Expected behavior

What do you expected to happen? How should have it worked?

Environment

  • OS:
  • Browser:
  • Browser version:

selenium-server-standalone dumps Firefox profile on stderr

๐Ÿ› Bug Report

When using custom Firefox profile, java -jar selenium-server-standalone-3.141.59.jar -role node dumps the whole (zipped?) profile to stderr, as part of Capabilities. This is several Megabytes...

To Reproduce

java -jar selenium-server-standalone-3.141.59.jar -role node

with prepareLoadedProfile_ as ffProfile (using Haskell bindings)

Expected behavior

There should be some way of restricting diagnostic messages to something reasonable... One should not have megabytes of data just dumped on stderr, especially when there is no actual error.

Environment

  • OS:
  • Browser:
  • Browser version:

Libraries or framework section

๐Ÿš€ Feature Proposal for the site or the documentation

Provide a section dedicated to frameworks or libraries both in the JVM and in other languages that use Selenium as its main dependency, under the hood or as supported, e.g. Webdriver.io, Watir

Motivation

Inform readers after they have read the basic documentation on existing libraries or frameworks that use WebDriver. This could cover users who are not JVM language based to find selenium frameworks that match their current capabilities in languages they feel more comfortable.

Example

Another section in the side bar or under an existing topic where it would fit e.g.: 3rd party frameworks

  • Basic descriptions for frameworks in other languages and links to them
  • Similar to this

Company listing disappeared?

๐Ÿš€ Feature Proposal for the site or the documentation

On the old seleniumhq.org website, there was this page: https://github.com/SeleniumHQ/www.seleniumhq.org/blob/master/src/main/webapp/ecosystem/index.jsp A listing of companies providing Selenium WebDriver services.

Motivation

It would be great to include this page again on the new website.

Example

So, people have a clear overview of companies providing Selenium WebDriver related services.

image

In between those commits, the page disappeared

I was using selenium and now it is saying there is no module called selenoum

I am working on a school project and i have to use selenium. I was using selenium for a long time. I stop working on that project for a week and yesterday i came back to continue it and i tried to run it and it is saying that there is no module named 'selenium'. I uninstall it and re-install it many times , also i re-install vsc(visual studio code) and i re-install python 3.8 . No, i am not using a virtual environment.
Btw the way that i import it is :: from selenium import webdriver.
If you want to give you more dilates about the code that might be useful to find the problem just ask

Program.Browser.Quit() - freeze application

I installed webdriver version 4 into my visualStudio today.
I launched the application as usual. It does this:

.................
ย ย ย ย ย ย ย ย ย ย ย ย  Program.Browser = new ChromeDriver (options);
ย ย ย ย ย ย ย ย ย ย ย ย  Program.Browser.Manage(). Timeouts(). ImplicitWait = TimeSpan.FromMilliseconds(500); // timeout for searching for items
ย ย ย ย ย ย ย ย ย ย ย ย  Program.Browser.Manage(). Window.Maximize();
.................

Then I do Program.Browser.Quit();
The browser window closes.
But chromedrover.exe does not close. And my application freezes. Only the Stop button in the IDE helps.

In the previous version of webdriver, everything worked fine.

Jenkins parallel pipeline close all the chrome proccesses

I have a jenkins pipeline job with three parallel stages launching tests against chrome with pytest.

stage('Run tests') {
            parallel {
                stage('Tests stage A') {
                    when {
                        expression { params.TEST_MARK_A != '' }
                    }
                    steps { 
                               ....
                              }
                stage('Tests stage B') {
                    when {
                        expression { params.TEST_MARK_B != '' }
                    }
                    steps { 
                               ....
                              }
                 stage('Tests stage C') {
                    when {
                        expression { params.TEST_MARK_C != '' }
                    }
                    steps { 
                               ....
                              }
                  }
}

The conf.test file contains the Chrome object

    caps = DesiredCapabilities.CHROME
    caps['loggingPrefs'] = {'performance': 'ALL'}

    chromeoptions = webdriver.ChromeOptions()
    chromeoptions.add_argument('--disable-web-security')
    chromeoptions.add_argument('--disable-translate')
    chromeoptions.add_argument('--disable-extensions')
    chromeoptions.add_argument('--disk-cache-dir=/dev/null')
    chromeoptions.add_argument('--disk-cache-size=1')

    browser = webdriver.Chrome(desired_capabilities=caps,
                               chrome_options=chromeoptions)
    browser.set_window_size(1400, 1100)
    browser.implicitly_wait(10)

    yield browser
    # Comment because cause "WebdriverException: chrome not reachable" in other stages when finish one stage
    browser.quit()

But when one stage finish, all chrome proccesses are close and other stages are failing with the following exception:

WebDriverException: Message: chrome not reachable
        (Session info: chrome=75.0.3770.142)
        (Driver info: chromedriver=2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb),platform=Linux 4.15.0-48-generic x86_64)

I think webdriver only should close the chrome connections of this stage when browser.quit(), not all the chrome processes of the machine which is running in other stages

Unable to Locate Selenium IDE Terms & Conditions

Before we're able to acquire Selenium IDE software, our Customer (NASA) requires a review of all software Terms and Conditions. After searching for the Selenium IDE T&C document or link for the past three (3) days, I'm back to square one.

There is an urgent need to acquire this product, but my hands are tied until I can comply with the Customer's requirement. Any help would be GREAT** appreciated. Thanks, Jeff

Broken markdown in "Waits" documentation page in Spanish

๐Ÿ› Bug Report

Browsed to the documentation page about "Waits" in Spanish (es) and there's content intermingled with markdown code showing in the HTML. Reading the content is uncomfortable.

To Reproduce

  1. Navigate your browser (I used Firefox on Win10) to https://selenium.dev/documentation/es/webdriver/waits/
  2. Scroll down to the sentence starting with:

    In that example, we pass in an anonymous function

  3. Observe markdown intermingled with content. Ex:

    a timeout error.### Options The wait condition

Screenshot is attached:
image

Expected behavior

Content should be well formatted. Markdown codes translated into HTML rather than visibile as literals

Environment

  • OS: Windows 10 Home
  • Browser: Firefox
  • Browser version: 71.0 (64-bit)

WebDrive can't render https://login.proficio.com

Tried following code to navigate to https://login.proficio.com but the page isn't rendered properly. Same for ChromeDirver and Firefox Driver too.

package webtest;

import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.safari.SafariDriver;

class WebTest {

public static void main(String[] args) {
    //WebDriver driver = new ChromeDriver();
    WebDriver driver = new SafariDriver();
      
    // Launch Website  
    driver.navigate().to("https://login.proficio.com");
      
    //Maximize the browser
    driver.manage().window().maximize();

}

}

Types of Testing page (content)

๐Ÿ› Bug Report

While translating the documentation from English to German, I think that the Types of Testing Page needs a update. Concrete I think that the description for acceptance testing and functionial testion are too similar and it is not clear what the difference is (verification vs. validation)

To Reproduce

https://selenium.dev/documentation/en/introduction/types_of_testing/

If you want me to rewrite it just tag me to that issue and I will do it. But what happens to the already translated pages (spanish, french, ....)

sendkeys - Add list of possible key strokes

๐Ÿš€ Feature Proposal for the site or the documentation

The sendkeys only has one example - e.g. ${KEY_ENTER}). It's not very helpful and leads me to guess the other ones like ${KEY_TAB}, is that even valid? A list of valid keystrokes needs to be confirmed for example shift, alt and other things like that.

Motivation

As above.

Example

As above.

EdgeNameNotMatch

image

hello,I download the python code by pip3 and then i found that the .exe name is not the same as the file download on the microsoft which named as msedgedriver.exe

So it's different from Chrome And FireFox, they are the same name.

Rename the .exe file can solve the problem.
But I think modify MicrosoftWebDriver.exe to msedgedriver.exe is a good idea.๐Ÿ˜„
It will be nice to the beginners.
Thank you.

  • OS: Windows 10
  • Browser: New Edge
  • Browser version:79.0.309.71

Remove deprecated Selenium class from Documentation code examples

๐Ÿ› Bug Report

The Selenium class is used in the Documentation code example on the
'Guidelines > Page object models' page and possibly elsewhere. This was confusing, since I don't recall it being explained or referenced in the Documentation flow prior to this page. Then, I found in the API that the class is deprecated, which explained why it's usage isn't explained.

References to the Selenium class might also occur on other pages. Though, I might be confused by examples that I encountered on other websites.

To Reproduce

https://selenium.dev/documentation/en/guidelines_and_recommendations/page_object_models/
Selenium bug

Expected behavior

Please update the code examples to not reference deprecated classes. Thanks

Environment

  • OS: Windows
  • Browser: Edge
  • Browser version: 44.18362.449.0

Improve Wiki Pages

๐Ÿ› Bug Report

The wiki pages are old and

To Reproduce

Pages to start with

Automation-Atoms.md
Continuous-Integration.md
Crazy-Fun-Build.md
InternetExplorerDriver-Internals.md
Native-Events-On-Linux.md
Python-Bindings.md
Ruby-Bindings.md

Detailed steps to reproduce the behavior:

Expected behavior

Test script or set of commands reproducing this issue

Docs updating

Issues without a reproduction script are likely to stall and eventually be closed.

Environment

OS:
Browser:
Browser version:
Browser Driver version:
Language Bindings version:
Selenium Grid version (if applicable):

User Manual

Instead of having the Documentation just online, could we make an option to generate the entire as-of-date Documentation in PDF format for download?

If you would like me to do it I can, but I am sure there are younger people who are more familiar with the setup to do it in a jiffy.

Regards,

Karun.

Brand guide/logos resource page

๐Ÿš€ Feature Proposal for the site or the documentation

Add a section on the documentation/selenium.dev site for a brand guide/logo resources

Motivation

I was looking for updated logo resources (similar to the question at SeleniumHQ/selenium#1063) for Selenium and could not find them.

Example

Other projects such as Drupal and the Apache Software Foundation have brand guides. Sorry if I'm just missing the one for Selenium.

Search form does not work

Screen Shot 2019-12-05 at 12 30 33 PM

Screen Shot 2019-12-05 at 12 30 48 PM

๐Ÿ› Bug Report

Did you find something wrong with the site or the documentation? Please describe
your finding in a clear and concise way.

Search form does not work or show any error messaging.
Typing in the search box results in console errors (see screenshots for Chrome and Safari).
Pressing enter to search causes no change - search is not executed and text remains in the text box.

To Reproduce

How can we reproduce the issue you found? Please tell us how we can do that.
Don't forget to add:

  • Absolute link where the issue was found
  • Screenshot (if needed)
  • The environment you had when the issue was found (see below)

Tell us the detailed steps to reproduce it:

Navigate to any page at https://selenium.dev/documentation/en/
Type text in the search box.
Press Enter to search.

Expected behavior

What do you expected to happen? How should have it worked?

When text is entered into the search form and Enter is pressed, the search should be executed and search results should be shown on the page.

Environment

  • OS: OSX Mojave 10.14.6
  • Browser: Chrome, Safari, Firefox
  • Browser version: Chrome 78.0.3904.108, Safari 13.0.3 (14608.3.10.10.1), Safari 68.0

keyboard

I want to simulate pressing F12, But it doesn't work, I'm using a Mac
Actions action = new Actions(driver); action.sendKeys(Keys.F12).build().perform();

Looks like ActionChains is not working with iframe in Python

๐Ÿ› Bug Report

I am trying to move an element from outside of iframe to inside iframe but it seems that never worked.

To Reproduce

This is a website URL where I executed below code: https://grapesjs.com/demo.html

element_source = self._selenium.find_element(By.XPATH,
                                          '//div[@class="gjs-block-label"][contains(.,"Tooltip")]')
    element_target=self._selenium.find_element(By.CLASS_NAME,'gjs-frame')
    actions = ActionChains(self._driver)
    actions.drag_and_drop(element_source, element_target).perform()
    time.sleep(5)

Expected behavior

Expecting that element from the right panel should move to left iframe.

Environment

  • OS: Windows
  • Browser: Chrome
  • Browser version: 81.0.4044.138

WebDrive can't render https://login.proficio.com

๐Ÿ› Bug Report

Tried following code to navigate to https://login.proficio.com but the page isn't rendered properly. Same for ChromeDirver and Firefox Driver too.

To Reproduce

Use following code.

package webtest;

import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.safari.SafariDriver;

class WebTest {

public static void main(String[] args) {
//WebDriver driver = new ChromeDriver();
WebDriver driver = new SafariDriver();

// Launch Website  
driver.navigate().to("https://login.proficio.com");
  
//Maximize the browser
driver.manage().window().maximize();

}
}

Expected behavior

It should render the site properly.

Environment

  • OS: Windows and macOS
  • Browser: Chrome, Safari and Firefox
  • Browser version: Chrome 81.0.4044.138 and Safari 13.0.5

Download URL needs to Fixed.

๐Ÿ› Bug Report

i'm trying to download the language binding zip file for Selenium Java, rather it is downloading the standalone server version. please Fix the URL to stable version.

To Reproduce

Expected behavior

It should download the .zip file containing all selenium jars.

Please Fix the URL ASAP.

Add new language on site (Korean)

Hello. I am a university student in Korea. First of all, thank you for your wonderful project and documentation.
I've recently learned about crawler including this for team project, and my friends and I were really impressed by your documentation. And I would like to add Korean to your document. Because there'are lot of people who are interested in crawler this could help more Korean developer to use Selenium.
I am raising an issue because I want to hear your opinion on this. Thank you for reading the long post.

PS. And I have also signed the CLA on this link.

Python code examples should use Python3 print() syntax

๐Ÿ› Bug Report

Expected behavior

Python examples in documentation should all use Python3 syntax, not Python2.

Actual behavior

Many examples in the docs use the old print statement syntax rather than print() function.

Rationale

Python2 is EOL as of January 2020 and support for it will be dropped from the Python language bindings sooner than later (I expect). Using the old syntax will cause confusion for beginners reading the official documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.