Questions tagged as 'selenium-webdriver'

1
answer

ClassNotFoundException error

Good afternoon, what does the following error mean? Class not found stancedriver.StanceDriver java.lang.ClassNotFoundException: stancedriver.StanceDriver at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loa...
asked by 09.06.2017 / 21:59
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
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 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

Problem click button python selenium

I'm having trouble clicking a button, so try gives the ElementNotVisibleException error: Message: element not interactable pdf = driver.find_element_by_xpath('//*[@class="btn btn-default btn-segunda-via-aberta ng-scope"]') pdf.click()...
asked by 17.10.2018 / 20:37
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