Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Services
    • Conferences
    • Courses
    1. Home
    2. Tags
    3. selenium webriver
    Log in to post

    • K

      How to Change a html line code with python?
      Automated Testing • selenium webriver python html • • Kadir  

      2
      0
      Votes
      2
      Posts
      2
      Views

      J

      To remove the attribute disabled="" you can use the following line of code: driver.execute_script("arguments[0].removeAttribute('disabled')", element)
    • A

      Webdriver chrome is not working when express VPN is connected
      Automated Testing • selenium webriver chrome vpn • • Avante  

      2
      0
      Votes
      2
      Posts
      3
      Views

      K

      Try this, I have the same issue with surfshark but this fixed. install webdriver_manager using pip. with webdriver_manager there is no need to download chromedriver it automatically detects your chrome version. from selenium.webdriver.chrome.options import Options from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager options = webdriver.ChromeOptions() driver = webdriver.Chrome(ChromeDriverManager().install(),options=options)
    • K

      Scrolling to the next element in Selenium (Python)
      Automated Testing • selenium webriver python • • Kadir  

      2
      0
      Votes
      2
      Posts
      1
      Views

      morde

      Just use this: element = driver.find_element_by_xpath(textbox_id) driver.execute_script("arguments[0].scrollIntoView();", element) #Scrolls down until the element is visible
    • C

      Selenium works in Terminal but not the Python Shell
      Automated Testing • selenium webriver python modulenotfounderror python shell terminal • • courtlanda  

      2
      0
      Votes
      2
      Posts
      1
      Views

      D

      It's seems like the Python interpreter you're using in the shell is not the same one used by Vscode. You can change the Python environment to match the one you're using in your Shell, or even install selenium in the Python interpreter currently used with: python -m pip install -U selenium
    • J

      How to use options.add_argument(“--headless”) in Selenium Python
      Automated Testing • selenium webriver python headless • • jonetta  

      2
      0
      Votes
      2
      Posts
      1
      Views

      T

      Where is your driver initialization. you need to pass chrome options while initialize the driver like. options = webdriver.ChromeOptions() options.add_argument("download.default_directory=C:\Users\gabriel.lucena\Documents\Python Scripts") options.add_argument("--headless") driver=webdriver.Chrome(options=options) Now if you just run this code to check whether headless options works. driver.get("https://stackoverflow.com/") print(driver.title)
    • C

      How to create a text file for Selenium Python to read with out extra character problems?
      Automated Testing • selenium webriver python xpath • • charlenef  

      2
      0
      Votes
      2
      Posts
      2
      Views

      N

      Inserting this as the first item in the for loop did the trick customer = customer.rstrip("\n")
    • N

      How to return text in Selenium?
      Automated Testing • selenium webriver python text • • Nykeriab  

      2
      0
      Votes
      2
      Posts
      1
      Views

      T

      driver.find_element_by_xpath("//div[contains(@class, 'rankings-list-volume')]").text
    • A

      Fetch console logs error code selenium js
      Automated Testing • selenium webriver logs javascript • • Amritpal  

      2
      0
      Votes
      2
      Posts
      1
      Views

      Laycee

      Here is how can you do it require('chromedriver'); const path = require('path'); const wd = require('selenium-webdriver'); const chrome = require('selenium-webdriver/chrome'); var builder = new wd.Builder(); var options = new chrome.Options(); var prefs = new wd.logging.Preferences(); var driver; prefs.setLevel(wd.logging.Type.BROWSER, wd.logging.Level.ALL); options.setLoggingPrefs(prefs); driver = builder .forBrowser(wd.Browser.CHROME) .setChromeOptions(options) .build(); driver .get(`file://${path.resolve(__dirname, './page.html')}`) .then(() => driver.manage().logs().get(wd.logging.Type.BROWSER)) .then((logs) => { console.log(logs); }) .then(() => driver.quit());
    • N

      Identify an element with in an angular website using Selenium
      Automated Testing • selenium webriver angular webelement • • Nykeriab  

      2
      0
      Votes
      2
      Posts
      1
      Views

      P

      For your element, you have a couple of options to access it <input _ngcontent-wle-c93="" formcontrolname="FirstName" mattooltip="Enter First Name" maxlength="50" matinput="" placeholder="First Name" class="mat-input-element mat-form-field-autofill-control ng-tns-c47-3 ng-pristine ng-invalid ng-touched" cdk-describedby-host="" id="mat-input-0" aria-invalid="true" aria-required="false" aria-describedby="mat-error-0"> Let's take it one by one CSS_SELECTOR drive.findElement(By.cssSelector("input[formcontrolname='FirstName'][placeholder='First Name']")); XPATH drive.findElement(By.xpath("//input[contains(@placeholder,'First Name')]")); or drive.findElement(By.xpath("//input[contains(@formcontrolname,'FirstName')]")); or both drive.findElement(By.xpath("//input[contains(@formcontrolname,'FirstName') and (@placeholder, 'FirstName')]")); same for CSS_SELECTOR - I've shown to you the code with both, but you can access it even by specifying one attribute for your input element
    • carriann

      How to run Selenium Tests written in C# on a Safari browser in the same Windows 10 laptop?
      Automated Testing • selenium webriver safari windows 10 • • carriann  

      2
      0
      Votes
      2
      Posts
      3
      Views

      Laycee

      Apple's support for Safari on Windows stopped at 5.1 version, which means the latest safari you can install on Windows in Safari 5.1. Second - no docker images for Safari - Third, you can create a Machintosh VM on your PC here is the link for Catalina here is the link for Mojave if you add one of those on your machine you also need to enable Safari automation Open Safari Go to Safari > Preferences Go to Advanced and in the bottom, there is an option "Show Develop menu in menu bar" Check that option Go to Develop Check on "Allow Remote Automation" Close/Quit the browser After that, you can run the selenium node script on mac in order to connect it from the grid. And you can also use as a grid the docker-selenium
    • 1
    • 2
    • 3
    • 1 / 3