back soft

مطالب مرتبط با «selenium chromedriver» در back soft | نویسنده: استخدام کار

Selenium C# - driver "pause" , open new form and get data from it, continue driver and paste data

Vote count: 0 I'm having problem with Selenium driver, because it freezes my form which contains crucial data for the rest of the task. Here is part of the code where problem occurs : element.SendKeys(OpenQA.Selenium.Keys.Enter); SendKeys.Send("{TAB}"); driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromSeconds(15)); MainForm FormN = new MainForm(); FormN.Show(); It freezes here and it skips PerformClick(); action and proceeds to "FindElement(By.Id..." FormN.btnCopy.PerformClick(); FormN.Close(); driver.FindElement(By.Id("twofactorcode_entry")).Click(); I already tried : async, sleep, ImplicitlyWait etc. Note : When driver finished the task, then form loads normally. asked 44 secs agoq...

ادامه مطلب

Java Selenium Chromedriver loads Cookies but does not use them

Vote count: 0 i need to access a website multiple times a day and want to skip the Log-In page. This is why i want to use Cookies in Java Selenium Chromedriver, for skipping that Log-In after accessing it the first time on a day. Selenium is saving the Cookies correctly, but does not use them and i dont get access on the following page. Can you help me? This is my Code: public static void main(String[] args) throws InterruptedException { Set cookie = null; Iterator itr = null; while (true) { System.setProperty("webdriver.chrome.driver", "C:\Users\Maxi\Desktop\ChromeDriver.exe"); driver = new ChromeDriver(); driver.get("https://www.google.com"); while (itr != null && itr.hasNext()) { driver.m...

ادامه مطلب