selenium

How to create a BAT file to run Autotests

I wrote Auto tests in Java using the Selenid library right now I want to create a Bat file to run these tests not through the Intellij program but through this file

How to download a page via selenium

I need to download the page that selenium opened for further parsing via bs4. How do I do this?

Python Selenium Chrome Proxy

The customer for parsing gave a large list of proxies (without authorization) (I think free). But I have no proxy loads the s ... -no-sandbox") options.add_argument("--disable-dev-shm-usage") What should I do? These are mutually exclusive factors

XPath double or nested text in ID

The site has a drop-down menu with the text: "Power Supply Unit". With the built-in Chrome browser tools, I defined the full ... : is it possible to use 2 selectors, or is it necessary to somehow combine the ID with the text in one selector? Tell me how?

Bypassing the selenium-webdriver definition?

Browsers Chrome, Chromium 80.81, python3. 8. There is a site for checking for a bot. Antibot When using selenium, the webd ... ot.sannysoft.com') time.sleep(225) driver.quit() To continue: if you run Chrome in debug mode, WebDriver is also detected.

Selenium parser. How to optimize Chrome and Chromedriver?

I use Selenium and Chrome Driver to open two tabs to the desired page and ran into this problem: During the passage through t ... filled. In the end, I ended up with +-250 records in the database. And you need to parse a few thousand. What should I do?

Selenium finds an element every other time

Hello! I pull out the h1 element on the YouTube video page using Selenium.WebDriver (the element is not dynamic) //--- открыв ... licitWait = TimeSpan.FromSeconds(2); The result of the code on the site: eproves.com (since the link is not available leave)

selenium --headless Chrome Canary

How to use selenium with the --headless argument for Chrome Canary and where to get webdrive for it? from selenium import web ... tions import Options c = Options() c.add_argument('--headless') d = webdriver.Chrome(options=c) d.get('https://yandex.ru/')

Selenium stops running the JAVA browser

On the Linux server, there is an executable jar file, namely a Telegram bot. The program works around the clock without stopp ... } catch (Exception e){} } return hm; } } Maybe I'm doing something wrong, what's the matter?

Why is incorrect data output during parsing?

I am writing a parser for a site, the data that should be parsed is updated all the time, and I ran into such a problem that ... riter.writerows([t]) # Записывает список списка переменной t, иначе через каждый символ будет запятая. time.sleep(3)

How do I log in to my Google account using Selenium?

I write the code in Python. The task is to use Selenium to track the status of the program in Google Colab. But I have the following message when I try to log in to Google: Can you tell me how you can get around this restriction?

How do I get a link from a user? Python, Selenium

Python, Selenium. How to save the input function to a variable and ask the user to enter a link there. Then use Selenium to o ... hromedriver" driver = webdriver.Chrome(chromedriver) link = input("Введите ссылку на объявление Youla: ") driver.get(link)

How do I log in to the browser in normal mode via selenium webdriver?

When using selenium webdriver, the browser window opens in a special mode with the inscription "The browser is controlled by automated software". It does not store cookies. Is there any way to fix this?

Interface for python

I have an instagram bot written in selenium. In Qt Designer I made an interface for it, but I can't connect it in any way. H ... _ == '__main__': app = QtWidgets.QApplication(sys.argv) mywin = GUI() mywin.show() sys.exit(app.exec_())

Python Selenium does not work The browser starts and that's it

Returns an error on Chrome [14264:12496:1221/124131.136:ERROR:browser_gpu_channel_host_factory.cc(168)] Failed to launch GPU ... ad] WARNING: Failed to launch tab subprocess: file z:/task_1579290903/build/src/ipc/glue/GeckoChildProcessHost.cpp, line 681

Image parsing in Selenium C# / pure C# in an open Selenium browser

Faced with the problem of image parsing in Selenium. Now the problem is solved by cropping the screenshot of the site page, w ... e; } Thread.Sleep(300000); } } //} }

Python authorization of socks5 proxy in selenium for Firefox

When I use a proxy without username and password, everything works fine from selenium import webdriver from selenium.webdrive ... ername, - password in the same way. But the error is the same Who knows how to solve it ? Or is there another way to log in ?

Compile XPath for Selenium

The task is to find the desired newly created user by text and click on it. There must be a click on the element with the lis ... it-textarea">ФИО</span><textarea class="editable- textarea"></textarea> </div> </div>

Search for an element in the document text.querySelector, which selector to choose?

I'm trying to emulate a click by finding an element by the text in it. How to write a selector correctly? I tried different d ... v/table/tbody/tr[3]/td/div/label Searching by ID and other standard parameters is not an option, as they change periodically