Questions tagged as 'selenium'

1
answer

Python and Selenium: SyntaxError: invalid syntax [closed]

I'm trying to automatically sign in to facebook with the code below, from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait import unittest class LoginTest (unittest.Testcase): def setUp(self):...
asked by 13.01.2016 / 14:45
1
answer

Put except with error name in python

I need to create a try except with two exceptions, but I do not know how to put the specific error in the first except, the error that appears below, could someone help me? raise exception_class(message, screen, stacktrace) selenium.common.ex...
asked by 05.11.2018 / 20:40
2
answers

Clear () and SendKeys () in a single method

I have methods clear and sendKeys and wanted "colapsar" both in one, WebElement user = webdriver.findElement(By.id("username")); user.clear(); user.sendKeys(username); WebElement passw = webdriver.findElement(By.id(...
asked by 05.12.2017 / 12:13
1
answer

PYTHON - selenium proxy configuration

I'm trying to implement proxy configuration in firefox via selenium but when I open the page, setup works. Here is the test I did to access a site that verifies the ip. profile = webdriver.FirefoxProfile() profile.set_preference('general.usera...
asked by 11.04.2018 / 23:59
2
answers

Selenium IDE - Placeholder

I'm having trouble automating a test where I fill in a placeholder and save. When checking what I saved, I verify that the information entered in the field was not made. <input id="nomeCliente" class="form-control ng-pristine ng-valid ng-to...
asked by 11.07.2017 / 17:13
1
answer

How to validate a text (Assert) in a certain field in Selenium Webdriver?

How do I validate a text in a given field? The location is xpath: html/body/div[1]/div/div[4]/article/div[1]/div/header/div[1]/h1 The text is " Congratulations! Successfully inserted ". How do I validate with assert? Java language....
asked by 15.03.2018 / 16:05
1
answer

Selenium getattribute list c #

I have a problem creating a list with attributes follows HTML code: <div class="post clearfix" data-post-id="92842173">...</div> <div class="post clearfix" data-post-id="92841636">...</div> <div class="po...
asked by 08.11.2015 / 04:49
1
answer

Selenium WebDriver error accent

I'm using Selenium WebDriver to realify test with python when executing this line: mov.find_elements_by_xpath("td")[3].text.encode('utf-8') I have the answer: {'descricao': 'PROTOCOLIZADA PETI\xc3\x87\xc3\x83O'}, When should you:...
asked by 28.08.2018 / 00:50
1
answer

Compare string [] with string [closed]

I tried this way: IWebElement descriptionTextXPath = driver.FindElement(By.XPath("html/body/div[1]/div[1]/div[2]/div/ng-include[1]/section/ul/li[1]/div/div/article/h4")); String h4 = descriptionTextXPath.Text; Assert.Ar...
asked by 10.09.2015 / 13:15
1
answer

selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: {"method": "id", "selector": "// input [contains (@id, [closed]

When using the code: self.browser.find_element_by_id("//input[contains(@id,'seq')]") I get the error message: selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: {"method":"id","selector":"//input[contain...
asked by 24.08.2018 / 20:48