简体   繁体   English

如何在 Origin.com 中使用 selenium Z93F725A07423321C889DB44 select 登录按钮

[英]How to select the Sign In button in Origin.com using selenium java

I'm very, very new to selenium (i don't even know it exist as few days ago).我对 selenium 非常非常陌生(我什至不知道它在几天前存在)。 I try to find how to select the "Sign In" button in Origin.com (pic below)我试图找到如何 select Origin.com 中的“登录”按钮(下图)

enter image description here i tried using few xpath like在此处输入图像描述我尝试使用一些 xpath 之类的

//ul[@class='origin-nav origin-nav-stacked origin-footernav-loggedout origin-telemetry-footernav-loggedout']//a[@class='otkbtn otkbtn-primary origin-telemetry-otkbtn-primary']

and //div[contains(text(),'Sign In')] but it just doesn't work.//div[contains(text(),'Sign In')]但它不起作用。 Apologize if this question isn't the best, to be honest i don't even know how to properly asked this kind of question hahaha..如果这个问题不是最好的,请道歉,说实话我什至不知道如何正确地问这种问题哈哈哈..

Any help will be appreciated, Thank you..任何帮助将不胜感激,谢谢..

please try below solution to click sign in button请尝试以下解决方案以单击登录按钮

//div[@class='otkbtn-primary-text']

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM