Questions tagged as 'selenium'

2
answers

Clicking button inside an iframe

I'm using selenium to test a page but the button I need to click is inside an iframe that is inside a frame. this.wait.until(ExpectedConditions.elementToBeClickable(By.id("corpo"))); WebElement iframeCorpo = this.driver.findElement(By.id("corp...
asked by 10.04.2018 / 21:06
1
answer

Function strip () in python malfunction

I have a list in a file, where each line has a user agent (with "at the beginning and at the end of each line), which is used in a later part of a program, to perform automated tests using selenium. When I opened the list, I implemented that, fo...
asked by 10.04.2018 / 07:20
0
answers

Enter username and password selenium web driver

How do I enter user and password in a JavaScript message of a web page? I've tried driver.switchTo().alert() but it's not working. I'm using Selenium WebDriver with Junit     
asked by 15.03.2018 / 21:17
0
answers

Object Recognition + Click - Selenium Webdriver

I'm having trouble clicking a button via Selenium Webdriver. I've tried everything, but to no avail. I have already tried xpath and a lot more ways, but without success. Could someone help?   
asked by 02.03.2018 / 13:36
2
answers

Find element without ID tag and Name

Expensive, I need to find the element that does not contain id or name in HTML. Below is the example HTML <button type="button" class="btn btn-primary ng-scope" data-ng-if="novo2()" data-ng-click="novo()" clickonce="">...
asked by 28.02.2018 / 21:23
0
answers

Run selenium c # on external server

Good afternoon, Galera. I developed an automation application using Selenium in C # .net webforms , the application logs into a website and returns some information, if the user agrees it sends some information to that site, however when I went...
asked by 22.02.2018 / 16:43
0
answers

error Undefined offset: 1 selenium

Good afternoon, I'm having a bug in a selenium class. Does anyone know how to solve it? the code snippet is this. /* new way to retrieve sessionId from response in selenium 2.35.0 */ list($headers, $content) = explode("\r\n\r\n", $rawRespons...
asked by 24.01.2018 / 16:56
1
answer

Selenium Web Driver Phantom JS c # Continue from where you left off

I'm developing a Selenium robot. However, this robot has time that interacts with the user. But I can not get him to continue from where he left off. I'll give you an example:    Make sure that this robot does a query of your CPF on a si...
asked by 09.12.2017 / 13:41
1
answer

Open and close multiple tabs in browser with Python

Hello, I need some help. I need this script I have (Python and JS) open a certain number of tabs and after a time interval close and reopen the same tabs again. However, in order not to close the browser I still need one of them to remain open....
asked by 01.12.2017 / 17:52
0
answers

Have it open and reopen every x time a number of Python and Selenium tabs

I need this code of my every hour to do the process of reopening all tabs or setting or just close everything and run that code every hour. How? from selenium import webdriver import time import json import sys import os import pyautogui if l...
asked by 06.12.2017 / 20:24